| 
|||||||||
| 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(String name,
                                 URL[] urls)
Creates a named class loader with no parents.  | 
|
NamedClassLoader(String name,
                                 URL[] urls,
                                 ClassLoader parent)
Creates a named class loader as a child of the specified parent.  | 
|
NamedClassLoader(String name,
                                 URL[] urls,
                                 ClassLoader parent,
                                 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.  | 
 String | 
getName()
Gets the name of this class loader.  | 
 boolean | 
isDestroyed()
Check if this classloader has been destroyed  | 
 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.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public NamedClassLoader(String name,
                        URL[] urls)
name - the name of this class loaderurls - the urls from which this class loader will classes and resources
public NamedClassLoader(String name,
                        URL[] urls,
                        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 loader
public NamedClassLoader(String name,
                        URL[] urls,
                        ClassLoader parent,
                        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 urls| Method Detail | 
|---|
public boolean isDestroyed()
public void destroy()
destroy in interface DestroyableClassLoaderpublic String getName()
public String toString()
toString in class Object
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||