|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.loader.Loader
com.caucho.loader.JarListLoader
com.caucho.loader.LibraryLoader
@Configurable public class LibraryLoader
Class loader which checks for changes in class files and automatically picks up new jars.
Field Summary |
---|
Fields inherited from class com.caucho.loader.JarListLoader |
---|
_jarList |
Constructor Summary | |
---|---|
LibraryLoader()
Creates a new directory loader. |
|
LibraryLoader(java.lang.ClassLoader loader)
|
|
LibraryLoader(java.lang.ClassLoader loader,
Path path)
Creates a new directory loader. |
Method Summary | |
---|---|
static DynamicClassLoader |
create(java.lang.ClassLoader parent,
Path path)
Create a new class loader |
protected void |
destroy()
Destroys the loader, closing the jars. |
Path |
getCodePath()
|
Path |
getPath()
The library loader's path. |
void |
init()
Initialize |
boolean |
isModified()
True if any of the loaded classes have been modified. |
boolean |
logModified(java.util.logging.Logger log)
True if the classes in the directory have changed. |
void |
setFileset(FileSetType fileSet)
Sets a file set. |
void |
setPath(Path path)
The library loader's path. |
java.lang.String |
toString()
|
Methods inherited from class com.caucho.loader.JarListLoader |
---|
addJar, buildClassPath, clearJars, getClassEntry, getPath, getResources, isJarCacheEnabled, setLoader, validate |
Methods inherited from class com.caucho.loader.Loader |
---|
buildSourcePath, getClassLoader, getCodeSource, getHashCrc, getResource, getResourceAsStream, isDirectoryLoader, loadClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LibraryLoader()
public LibraryLoader(java.lang.ClassLoader loader)
public LibraryLoader(java.lang.ClassLoader loader, Path path)
Method Detail |
---|
public void setPath(Path path)
public Path getPath()
public void setFileset(FileSetType fileSet)
public static DynamicClassLoader create(java.lang.ClassLoader parent, Path path)
parent
- parent class loaderdir
- directories which can handle dynamic jar addition@PostConstruct public void init() throws ConfigException
init
in class JarListLoader
ConfigException
public boolean isModified()
isModified
in interface Dependency
isModified
in class JarListLoader
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
logModified
in class JarListLoader
public Path getCodePath()
protected void destroy()
destroy
in class Loader
public java.lang.String toString()
toString
in class JarListLoader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |