|
|||||||||||
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
org.jboss.util.loading.DelegatingClassLoader
A URL classloader that delegates to its parent, avoiding synchronization. A standard flag is provided so it can be used as a parent class, but later subclassed and to revert to standard class loading if the subclass wants to load classes.
Field Summary | |
static URL[] |
EMPTY_URL_ARRAY
The value returned by getURLs . |
protected boolean |
standard
Whether to use standard loading |
Constructor Summary | |
DelegatingClassLoader(ClassLoader parent)
Constructor |
|
DelegatingClassLoader(ClassLoader parent,
URLStreamHandlerFactory factory)
Constructor |
Method Summary | |
protected Class |
loadClass(String className,
boolean resolve)
Load a class, by asking the parent |
Methods inherited from class java.net.URLClassLoader |
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
defineClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final URL[] EMPTY_URL_ARRAY
getURLs
.
protected boolean standard
Constructor Detail |
public DelegatingClassLoader(ClassLoader parent)
parent
- the parent classloader, cannot be null.public DelegatingClassLoader(ClassLoader parent, URLStreamHandlerFactory factory)
factory
- the url stream factory.Method Detail |
protected Class loadClass(String className, boolean resolve) throws ClassNotFoundException
className
- the class name to loadresolve
- whether to link the class
ClassNotFoundException
- when the class could not be found
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |