|
||||||||||
| 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 ObjectThrowable
protected Class<?> loadClass(String name,
boolean resolve,
boolean followImports)
throws ClassNotFoundException
ClassNotFoundException
protected Class<?> findClass(String name)
throws ClassNotFoundException
findClass in class URLClassLoaderClassNotFoundException
protected Class<?> findClass(String name,
boolean followImports)
throws ClassNotFoundException
ClassNotFoundExceptionpublic URL findResource(String name)
findResource in class URLClassLoaderpublic 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 URLClassLoaderIOExceptionpublic void addDelegate(ClassLoader cl)
public void removeDelegate(ClassLoader cl)
public Collection<ClassLoader> getDelegates()
public void stop()
public String toString()
toString in class Objectpublic void addURL(URL url)
addURL in class URLClassLoaderurl - the url to append
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||