public class ClassLoaderProxy extends URLClassLoader
| Constructor and Description |
|---|
ClassLoaderProxy(URL[] shared,
ClassLoader parent)
Creates a new instance of ClassLoader
|
| Modifier and Type | Method and Description |
|---|---|
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() |
close, definePackage, 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, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic ClassLoaderProxy(URL[] shared, ClassLoader parent)
protected void finalize()
throws Throwable
protected Class<?> loadClass(String name, boolean resolve, boolean followImports) throws ClassNotFoundException
ClassNotFoundExceptionprotected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class URLClassLoaderClassNotFoundExceptionprotected 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 void addURL(URL url)
addURL in class URLClassLoaderurl - the url to appendCopyright © 2009-2015 Oracle Corporation. All Rights Reserved.