|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.loader.Loader
com.caucho.loader.ResourceLoader
public class ResourceLoader
Class loader specific to loading resources, not classes.
Field Summary |
---|
Fields inherited from class com.caucho.loader.Loader |
---|
log |
Constructor Summary | |
---|---|
ResourceLoader()
Null constructor for the resource loader. |
|
ResourceLoader(java.lang.ClassLoader loader)
|
|
ResourceLoader(DynamicClassLoader loader,
Path path)
Creates the resource loader with the specified path. |
Method Summary | |
---|---|
protected ClassEntry |
getClassEntry(java.lang.String name,
java.lang.String pathName)
The class entry is always null. |
Path |
getPath()
Gets the resource path. |
Path |
getPath(java.lang.String name)
Given a class or resource name, returns a patch to that resource. |
void |
setPath(Path path)
Sets the resource directory. |
java.lang.String |
toString()
Returns a printable representation of the loader. |
Methods inherited from class com.caucho.loader.Loader |
---|
buildClassPath, buildSourcePath, destroy, getClassLoader, getCodeSource, getHashCrc, getResource, getResourceAsStream, getResources, init, isDirectoryLoader, loadClass, setLoader, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceLoader()
public ResourceLoader(java.lang.ClassLoader loader)
public ResourceLoader(DynamicClassLoader loader, Path path)
path
- specifying the root of the resourcesMethod Detail |
---|
public void setPath(Path path)
public Path getPath()
public Path getPath(java.lang.String name)
getPath
in class Loader
name
- the class or resource name.
protected ClassEntry getClassEntry(java.lang.String name, java.lang.String pathName) throws java.lang.ClassNotFoundException
getClassEntry
in class Loader
name
- name of the class
java.lang.ClassNotFoundException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |