|
||||||||||
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.apache.xbean.classloader.NamedClassLoader
public class NamedClassLoader
The NamedClassLoader is a simple extension to URLClassLoader that adds a name and a destroy method that cleans up the commons logging and JavaVM caches of the classloader.
Constructor Summary | |
---|---|
NamedClassLoader(java.lang.String name,
java.net.URL[] urls)
Creates a named class loader with no parents. |
|
NamedClassLoader(java.lang.String name,
java.net.URL[] urls,
java.lang.ClassLoader parent)
Creates a named class loader as a child of the specified parent. |
|
NamedClassLoader(java.lang.String name,
java.net.URL[] urls,
java.lang.ClassLoader parent,
java.net.URLStreamHandlerFactory factory)
Creates a named class loader as a child of the specified parent and using the specified URLStreamHandlerFactory for accessing the urls.. |
Method Summary | |
---|---|
void |
destroy()
Destroys the clasloader releasing all resources. |
java.lang.String |
getName()
Gets the name of this class loader. |
boolean |
isDestroyed()
Check if this classloader has been destroyed |
java.lang.String |
toString()
|
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NamedClassLoader(java.lang.String name, java.net.URL[] urls)
name
- the name of this class loaderurls
- the urls from which this class loader will classes and resourcespublic NamedClassLoader(java.lang.String name, java.net.URL[] urls, java.lang.ClassLoader parent)
name
- the name of this class loaderurls
- the urls from which this class loader will classes and resourcesparent
- the parent of this class loaderpublic NamedClassLoader(java.lang.String name, java.net.URL[] urls, java.lang.ClassLoader parent, java.net.URLStreamHandlerFactory factory)
name
- the name of this class loaderurls
- the urls from which this class loader will classes and resourcesparent
- the parent of this class loaderfactory
- the URLStreamHandlerFactory used to access the urlsMethod Detail |
---|
public boolean isDestroyed()
public void destroy()
destroy
in interface DestroyableClassLoader
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |