public class DelegatingClassLoader extends URLClassLoader
| Modifier and Type | Field and Description |
|---|---|
static URL[] |
EMPTY_URL_ARRAY
The value returned by
URLClassLoader.getURLs(). |
protected boolean |
standard
Whether to use standard loading
|
| Constructor and Description |
|---|
DelegatingClassLoader(ClassLoader parent)
Constructor
|
DelegatingClassLoader(ClassLoader parent,
URLStreamHandlerFactory factory)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
loadClass(String className,
boolean resolve)
Load a class, by asking the parent
|
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic static final URL[] EMPTY_URL_ARRAY
URLClassLoader.getURLs().protected boolean standard
public DelegatingClassLoader(ClassLoader parent)
parent - the parent classloader, cannot be null.public DelegatingClassLoader(ClassLoader parent, URLStreamHandlerFactory factory)
parent - the parent classloader, cannot be null.factory - the url stream factory.protected Class<?> loadClass(String className, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderclassName - the class name to loadresolve - whether to link the classClassNotFoundException - when the class could not be foundCopyright © 2015 JBoss by Red Hat. All rights reserved.