KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > ioc > classloader > PrivateURLClassLoader


1 package org.jfox.ioc.classloader;
2
3 import java.net.URL JavaDoc;
4 import java.net.URLClassLoader JavaDoc;
5
6 /**
7  * @author <a HREF="mailto:yy.young@gmail.com">Young Yang</a>
8  */

9
10 public class PrivateURLClassLoader extends URLClassLoader JavaDoc {
11
12     public PrivateURLClassLoader(URL JavaDoc[] urls, ClassLoader JavaDoc parent) {
13         super(urls, parent);
14     }
15
16     protected void addURL(URL JavaDoc url) {
17         super.addURL(url);
18     }
19
20     protected synchronized Class JavaDoc<?> loadClass(String JavaDoc name, boolean resolve) throws ClassNotFoundException JavaDoc {
21         return super.loadClass(name, resolve);
22     }
23
24     protected Class JavaDoc<?> findClass(String JavaDoc name) throws ClassNotFoundException JavaDoc {
25         return super.findClass(name);
26     }
27
28 }
29
Popular Tags