|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
classUtils.pack.util.DynamicClassLoader
public class DynamicClassLoader
A classloader whose classpath can be set dynamically.
Version 1.2 adds resource support capability, but for thefindResources()
which is not
implemented.
By default, the classLoader attempts to use the parent class loader, if
any, to find a class. By setting the forceDynamicLoading
property, the classLoader will always find classes
by using the embedded DynamicClassFileFinder
.
$Revision$
Constructor Summary | |
---|---|
DynamicClassLoader()
Constructor for DynamicClassLoader. |
|
DynamicClassLoader(java.lang.ClassLoader arg0)
|
|
DynamicClassLoader(java.lang.ClassLoader arg0,
DynamicClassFinderInterface cff,
DynamicResourceFinderInterfaceInterface rff)
Constructor for DynamicClassLoader. |
|
DynamicClassLoader(DynamicClassFinderInterface cff,
DynamicResourceFinderInterfaceInterface rff)
Constructor for DynamicClassLoader. |
Method Summary | |
---|---|
void |
addClassPathEntry(java.lang.String entry)
Add a class path entry. |
java.lang.Class |
findClass(java.lang.String arg0)
|
DynamicClassFinderInterface |
getClassFileFinder()
|
java.io.InputStream |
getResourceAsStream(java.lang.String name)
|
DynamicResourceFinderInterfaceInterface |
getResourceFileFinder()
|
boolean |
isForceDynamicLoading()
Returns the forceDynamicLoading. |
static void |
main(java.lang.String[] args)
|
void |
setForceDynamicLoading(boolean forceDynamicLoading)
Sets the forceDynamicLoading. |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicClassLoader(java.lang.ClassLoader arg0, DynamicClassFinderInterface cff, DynamicResourceFinderInterfaceInterface rff)
arg0
- public DynamicClassLoader(DynamicClassFinderInterface cff, DynamicResourceFinderInterfaceInterface rff)
public DynamicClassLoader(java.lang.ClassLoader arg0)
public DynamicClassLoader()
Method Detail |
---|
public static void main(java.lang.String[] args)
public DynamicClassFinderInterface getClassFileFinder()
public DynamicResourceFinderInterfaceInterface getResourceFileFinder()
public void addClassPathEntry(java.lang.String entry)
entry
- public java.lang.Class findClass(java.lang.String arg0) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
ClassLoader.findClass(java.lang.String)
public java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream
in class java.lang.ClassLoader
ClassLoader.getResourceAsStream(java.lang.String)
public boolean isForceDynamicLoading()
public void setForceDynamicLoading(boolean forceDynamicLoading)
forceDynamicLoading
- The forceDynamicLoading to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |