public class PathLoader extends Loader implements Dependency
Constructor and Description |
---|
PathLoader()
Creates a new directory loader.
|
Modifier and Type | Method and Description |
---|---|
protected ClassEntry |
getClassEntry(java.lang.String name,
java.lang.String pathName)
Returns the class entry.
|
Path |
getCodePath() |
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
|
boolean |
isModified()
Returns the modified
|
boolean |
logModified(java.util.logging.Logger log)
Returns the modified
|
void |
put(java.lang.String name,
Path path)
Adds a new path.
|
java.lang.String |
toString() |
buildClassPath, buildSourcePath, destroy, getClassLoader, getCodeSource, getHashCrc, getResource, getResourceAsStream, isDirectoryLoader, loadClass, lookupPath, setLoader, validate
public boolean isModified()
isModified
in interface Dependency
public boolean logModified(java.util.logging.Logger log)
logModified
in interface Dependency
public void put(java.lang.String name, Path path)
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)
public Path getCodePath()
public java.lang.String toString()
toString
in class java.lang.Object