|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.werken.forehead.ForeheadClassLoader
Named, dynamically modifiable ClassLoader implementation.
Forehead| Nested Class Summary |
| Nested classes inherited from class java.lang.ClassLoader |
|
| Field Summary | |
static java.net.URL[] |
EMPTY_URL_ARRAY
Simple empty URL[0] array. |
private java.lang.String |
name
The name of this loader. |
| Fields inherited from class java.net.URLClassLoader |
|
| Fields inherited from class java.security.SecureClassLoader |
|
| Fields inherited from class java.lang.ClassLoader |
|
| Constructor Summary | |
ForeheadClassLoader(java.lang.ClassLoader parent,
java.lang.String name)
Construct given a parent and a name. |
|
| Method Summary | |
void |
addRepository(java.io.File repository)
Add a new repository to the set of places this ClassLoader can look for classes to be loaded. |
void |
addRepository(java.lang.String repository)
Add a new repository to the set of places this ClassLoader can look for classes to be loaded. |
void |
addURL(java.net.URL url)
Append a URL to this loader's search path. |
java.lang.String |
getName()
Retrieve the name of this ClassLoader. |
java.lang.String |
getResourceAsString(java.lang.String name)
Find the resource with the given name, and return a String. |
java.lang.String |
toString()
Produce output suitable for debugging. |
| Methods inherited from class java.net.URLClassLoader |
definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
defineClass |
| Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.net.URL[] EMPTY_URL_ARRAY
private java.lang.String name
| Constructor Detail |
public ForeheadClassLoader(java.lang.ClassLoader parent,
java.lang.String name)
parent - The parent loader.name - The name of this loader.| Method Detail |
public java.lang.String getName()
public void addURL(java.net.URL url)
url - The URL to append.public java.lang.String toString()
public java.lang.String getResourceAsString(java.lang.String name)
getResource(),
after checking to see if the resource data has been previously cached.
If the resource cannot be found, return null.
name - Name of the resource to return a String for.public void addRepository(java.lang.String repository)
repository - Name of a source of classes to be loaded, such as a
directory pathname, a JAR file pathname, or a ZIP file pathname. The
parameter must be in the form of an URL.
java.lang.IllegalArgumentException - if the specified repository is
invalid or does not existpublic void addRepository(java.io.File repository)
repository - Name of a source of classes to be loaded, such as a
directory pathname, a JAR file pathname, or a ZIP file pathname. The
parameter must be in the form of an URL.
java.lang.IllegalArgumentException - if the specified repository is
invalid or does not exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||