|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.components.classloader.ClassLoaderManagerImpl
A singleton-like implementation of ClassLoaderManager
| Field Summary | |
protected Set |
fileSet
Set of class directories |
| Fields inherited from interface org.apache.cocoon.components.classloader.ClassLoaderManager |
ROLE |
| Constructor Summary | |
ClassLoaderManagerImpl()
A constructor that ensures only a single class loader instance exists |
|
| Method Summary | |
void |
addDirectory(File directoryName)
Add a directory to the proxied class loader |
void |
dispose()
|
Class |
loadClass(String className)
Load a class through the proxied class loader |
void |
reinstantiate()
Reinstantiate the proxied class loader to allow for class reloading |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final Set fileSet
| Constructor Detail |
public ClassLoaderManagerImpl()
| Method Detail |
public void dispose()
dispose in interface Disposable
public void addDirectory(File directoryName)
throws IOException
addDirectory in interface ClassLoaderManagerdirectoryName - The repository name
IOException - If the directory is invalid
public Class loadClass(String className)
throws ClassNotFoundException
loadClass in interface ClassLoaderManagerclassName - The name of the class to be loaded
ClassNotFoundException - If the class is not foundpublic void reinstantiate()
reinstantiate in interface ClassLoaderManager
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||