|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
org.ckkloverdos.util.CompositeClassLoader
public class CompositeClassLoader
An extensible classloader that delegates class loading to a list of other class loaders.
| Constructor Summary | |
|---|---|
CompositeClassLoader()
Constructs a new instance with the context class loader as the parent. |
|
CompositeClassLoader(java.lang.ClassLoader parent)
Constructs a new instance with the given parent. |
|
CompositeClassLoader(java.lang.ClassLoader[] loaders)
Constructs a new instance with the given array of class loaders. |
|
CompositeClassLoader(java.util.List loaders)
Constructs a new instance with the given list of class loaders. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.ClassLoader l)
Adds the given class loader to the end of the internal list of class loaders. |
void |
add(java.io.File f)
|
void |
add(java.net.URI uri)
Creates a new URLClassLoader and adds it to the end of the internal
list of class loaders. |
void |
add(java.net.URI[] uris)
Creates a new URLClassLoader and adds it to the end of the internal
list of class loaders. |
void |
add(java.net.URL url)
Creates a new URLClassLoader and adds it to the end of the internal
list of class loaders. |
void |
add(java.net.URL[] urls)
Creates a new URLClassLoader and adds it to the end of the internal
list of class loaders. |
void |
addFile(java.lang.String filename)
|
protected java.lang.Class |
findClass(java.lang.String s)
|
java.lang.ClassLoader[] |
getClassLoaders()
|
boolean |
remove(java.lang.ClassLoader l)
|
void |
setAsContextClassLoader()
Sets this class loader as the context class loader. |
java.lang.String |
toString()
|
void |
toStringAware(ToString ts)
|
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, 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 CompositeClassLoader(java.lang.ClassLoader parent)
parent - public CompositeClassLoader()
public CompositeClassLoader(java.util.List loaders)
loaders - public CompositeClassLoader(java.lang.ClassLoader[] loaders)
loaders - | Method Detail |
|---|
public void add(java.lang.ClassLoader l)
l - public void add(java.net.URL url)
URLClassLoader and adds it to the end of the internal
list of class loaders.
url - public void add(java.net.URL[] urls)
URLClassLoader and adds it to the end of the internal
list of class loaders.
urls -
public void add(java.net.URI[] uris)
throws java.net.MalformedURLException
URLClassLoader and adds it to the end of the internal
list of class loaders. The URIs are first translated to URLs.
uris -
java.net.MalformedURLException
public void add(java.net.URI uri)
throws java.net.MalformedURLException
URLClassLoader and adds it to the end of the internal
list of class loaders.
uri -
java.net.MalformedURLExceptionpublic void add(java.io.File f)
public void addFile(java.lang.String filename)
public boolean remove(java.lang.ClassLoader l)
public java.lang.ClassLoader[] getClassLoaders()
public void setAsContextClassLoader()
context class loader.
protected java.lang.Class findClass(java.lang.String s)
throws java.lang.ClassNotFoundException
findClass in class java.lang.ClassLoaderjava.lang.ClassNotFoundExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void toStringAware(ToString ts)
toStringAware in interface IToStringAware
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||