|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.components.classloader.ClassLoaderManagerImpl
A singleton-like implementation of ClassLoaderManager
Field Summary | |
protected static java.util.Set |
fileSet
|
protected static RepositoryClassLoader |
instance
The single class loader instance |
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(java.io.File directoryName)
Add a directory to the proxied class loader |
java.lang.Class |
loadClass(java.lang.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 static RepositoryClassLoader instance
protected static java.util.Set fileSet
Constructor Detail |
public ClassLoaderManagerImpl()
Method Detail |
public void addDirectory(java.io.File directoryName) throws java.io.IOException
addDirectory
in interface ClassLoaderManager
directoryName
- The repository name
java.io.IOException
- If the directory is invalidpublic java.lang.Class loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
loadClass
in interface ClassLoaderManager
className
- The name of the class to be loaded
java.lang.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 |