|
||||||||||
| 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
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(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, getCodeSource, getLoader, getResource, getResourceAsStream, loadClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LibraryLoader()
public LibraryLoader(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 JarListLoaderConfigExceptionpublic boolean isModified()
isModified in interface DependencyisModified in class JarListLoaderpublic boolean logModified(java.util.logging.Logger log)
logModified in interface DependencylogModified in class JarListLoaderpublic Path getCodePath()
protected void destroy()
destroy in class Loaderpublic java.lang.String toString()
toString in class JarListLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||