@Configurable public class TreeLoader extends JarListLoader implements Dependency
_jarList
Constructor and Description |
---|
TreeLoader()
Creates a new directory loader.
|
TreeLoader(java.lang.ClassLoader loader)
Creates a new directory loader.
|
TreeLoader(java.lang.ClassLoader loader,
Path dir)
Creates a new directory loader.
|
Modifier and Type | Method and Description |
---|---|
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 |
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 |
setPath(Path path)
The directory loader's path.
|
java.lang.String |
toString() |
addJar, buildClassPath, clearJars, getClassEntry, getPath, getResources, isJarCacheEnabled, setLoader, validate
buildSourcePath, getClassLoader, getCodeSource, getHashCrc, getResource, getResourceAsStream, isDirectoryLoader, loadClass, lookupPath
public TreeLoader()
public TreeLoader(java.lang.ClassLoader loader)
public TreeLoader(java.lang.ClassLoader loader, Path dir)
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 addition@PostConstruct public void init()
init
in class JarListLoader
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
logModified
in class JarListLoader
public boolean isModified()
JarListLoader
isModified
in interface Dependency
isModified
in class JarListLoader
public Path getCodePath()
protected void destroy()
public java.lang.String toString()
toString
in class JarListLoader