public abstract class JarListLoader extends Loader implements Dependency
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<com.caucho.loader.JarEntry> |
_jarList |
Constructor and Description |
---|
JarListLoader()
Creates a new jar list loader.
|
JarListLoader(java.lang.ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
protected void |
addJar(Path jar) |
protected void |
buildClassPath(java.util.ArrayList<java.lang.String> pathList)
Fill data for the class path.
|
protected void |
clearJars()
Closes the jars.
|
protected ClassEntry |
getClassEntry(java.lang.String name,
java.lang.String pathName)
Returns the class entry.
|
Path |
getPath(java.lang.String pathName)
Find a given path somewhere in the classpath
|
void |
getResources(java.util.Vector<java.net.URL> vector,
java.lang.String name)
Adds resources to the enumeration.
|
void |
init()
Initialize the loader
|
protected boolean |
isJarCacheEnabled() |
boolean |
isModified()
True if any of the loaded classes have been modified.
|
boolean |
logModified(java.util.logging.Logger log)
True if any of the loaded classes have been modified.
|
void |
setLoader(DynamicClassLoader loader)
Sets the owning class loader.
|
java.lang.String |
toString() |
void |
validate()
Validates the loader.
|
buildSourcePath, destroy, getClassLoader, getCodeSource, getHashCrc, getResource, getResourceAsStream, isDirectoryLoader, loadClass, lookupPath
public JarListLoader()
public JarListLoader(java.lang.ClassLoader loader)
public void setLoader(DynamicClassLoader loader)
public boolean isModified()
isModified
in interface Dependency
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
public void validate() throws ConfigException
validate
in class Loader
ConfigException
public void init()
Loader
protected boolean isJarCacheEnabled()
protected void addJar(Path jar)
protected void buildClassPath(java.util.ArrayList<java.lang.String> pathList)
buildClassPath
in class Loader
protected ClassEntry getClassEntry(java.lang.String name, java.lang.String pathName) throws java.lang.ClassNotFoundException
getClassEntry
in class Loader
name
- name of the classjava.lang.ClassNotFoundException
public void getResources(java.util.Vector<java.net.URL> vector, java.lang.String name)
getResources
in class Loader
name
- name of the resourcepublic Path getPath(java.lang.String pathName)
protected void clearJars()
public java.lang.String toString()
toString
in class java.lang.Object