@Configurable public class LibraryLoader extends JarListLoader
_jarList
Constructor and Description |
---|
LibraryLoader()
Creates a new directory loader.
|
LibraryLoader(java.lang.ClassLoader loader) |
LibraryLoader(java.lang.ClassLoader loader,
Path path)
Creates a new directory loader.
|
Modifier and Type | Method and Description |
---|---|
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() |
addJar, buildClassPath, clearJars, getClassEntry, getPath, getResources, isJarCacheEnabled, setLoader, validate
buildSourcePath, getClassLoader, getCodeSource, getHashCrc, getResource, getResourceAsStream, isDirectoryLoader, loadClass, lookupPath
public LibraryLoader()
public LibraryLoader(java.lang.ClassLoader loader)
public LibraryLoader(java.lang.ClassLoader loader, Path path)
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()
public java.lang.String toString()
toString
in class JarListLoader