|
||||||||||
| 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.TreeLoader
public class TreeLoader
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 | |
|---|---|
TreeLoader()
Creates a new directory loader. |
|
TreeLoader(Path dir)
Creates a new directory loader. |
|
| Method Summary | |
|---|---|
static DynamicClassLoader |
create(java.lang.ClassLoader parent,
Path dir)
Create a new class loader |
protected void |
destroy()
Destroys the loader, closing the jars. |
Path |
getCodePath()
|
Path |
getPath()
The directory loader's path. |
void |
init()
Initialize |
boolean |
logModified(java.util.logging.Logger log)
True if the classes in the directory have changed. |
void |
setLoader(DynamicClassLoader loader)
Sets the owning class loader. |
void |
setPath(Path path)
The directory loader's path. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.loader.JarListLoader |
|---|
addJar, buildClassPath, clearJars, getClassEntry, getPath, getResources, isModified, validate |
| Methods inherited from class com.caucho.loader.Loader |
|---|
buildClassPath, buildSourcePath, buildSourcePath, getCodeSource, getLoader, getResource, getResourceAsStream, loadClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.caucho.vfs.Dependency |
|---|
isModified |
| Constructor Detail |
|---|
public TreeLoader()
public TreeLoader(Path dir)
| Method Detail |
|---|
public void setPath(Path path)
public Path getPath()
public static DynamicClassLoader create(java.lang.ClassLoader parent,
Path dir)
parent - parent class loaderdir - directories which can handle dynamic jar additionpublic void init()
init in class JarListLoaderpublic boolean logModified(java.util.logging.Logger log)
logModified in interface DependencylogModified in class JarListLoaderpublic void setLoader(DynamicClassLoader loader)
setLoader 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 | |||||||||