|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.sun.enterprise.module.impl.ClassLoaderProxy
public class ClassLoaderProxy
ClassLoaderProxy capable of loading classes from itself but also from other class loaders
Constructor Summary | |
---|---|
ClassLoaderProxy(URL[] shared,
ClassLoader parent)
Creates a new instance of ClassLoader |
Method Summary | |
---|---|
void |
addDelegate(ClassLoader cl)
|
void |
addURL(URL url)
Appends the specified URL to the list of URLs to search for classes and resources. |
protected void |
finalize()
|
protected Class<?> |
findClass(String name)
|
protected Class<?> |
findClass(String name,
boolean followImports)
|
URL |
findResource(String name)
|
URL |
findResourceDirect(String name)
Works like findResource(String) but only looks at
this module, without delegating to ancestors. |
Enumeration<URL> |
findResources(String name)
|
Collection<ClassLoader> |
getDelegates()
|
protected Class<?> |
loadClass(String name,
boolean resolve,
boolean followImports)
|
void |
removeDelegate(ClassLoader cl)
|
void |
stop()
called by the facade class loader when it is garbage collected. |
String |
toString()
|
Methods inherited from class java.net.URLClassLoader |
---|
definePackage, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClassLoaderProxy(URL[] shared, ClassLoader parent)
Method Detail |
---|
protected void finalize() throws Throwable
finalize
in class Object
Throwable
protected Class<?> loadClass(String name, boolean resolve, boolean followImports) throws ClassNotFoundException
ClassNotFoundException
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
protected Class<?> findClass(String name, boolean followImports) throws ClassNotFoundException
ClassNotFoundException
public URL findResource(String name)
findResource
in class URLClassLoader
public URL findResourceDirect(String name)
findResource(String)
but only looks at
this module, without delegating to ancestors.
public Enumeration<URL> findResources(String name) throws IOException
findResources
in class URLClassLoader
IOException
public void addDelegate(ClassLoader cl)
public void removeDelegate(ClassLoader cl)
public Collection<ClassLoader> getDelegates()
public void stop()
public String toString()
toString
in class Object
public void addURL(URL url)
addURL
in class URLClassLoader
url
- the url to append
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |