|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.loader.Loader
public abstract class Loader
Loads resources.
| Field Summary | |
|---|---|
protected static java.util.logging.Logger |
log
|
| Constructor Summary | |
|---|---|
Loader()
|
|
| Method Summary | |
|---|---|
protected void |
buildClassPath(java.util.ArrayList<java.lang.String> pathList)
Adds the sourcepath of this loader. |
void |
buildClassPath(java.lang.StringBuilder head)
Adds the classpath of this loader. |
protected void |
buildSourcePath(java.util.ArrayList<java.lang.String> pathList)
Adds the sourcepath of this loader. |
protected void |
buildSourcePath(java.lang.StringBuilder head)
Adds the sourcepath of this loader. |
protected void |
destroy()
Destroys the loader. |
protected ClassEntry |
getClassEntry(java.lang.String name,
java.lang.String pathName)
Returns the class entry. |
protected java.security.CodeSource |
getCodeSource(Path path)
Returns the code source for the path. |
DynamicClassLoader |
getLoader()
Gets the owning class loader. |
Path |
getPath(java.lang.String name)
Returns a path for the given name. |
java.net.URL |
getResource(java.lang.String name)
Returns the resource |
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Opens the stream to the resource. |
void |
getResources(java.util.Vector<java.net.URL> resources,
java.lang.String name)
Returns the resource |
protected java.lang.Class |
loadClass(java.lang.String name)
Loads the class directly, e.g. |
void |
setLoader(DynamicClassLoader loader)
Sets the owning class loader. |
void |
validate()
Validates the loader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.util.logging.Logger log
| Constructor Detail |
|---|
public Loader()
| Method Detail |
|---|
public void setLoader(DynamicClassLoader loader)
public DynamicClassLoader getLoader()
public void validate()
throws ConfigException
ConfigExceptionprotected java.lang.Class loadClass(java.lang.String name)
protected ClassEntry getClassEntry(java.lang.String name,
java.lang.String pathName)
throws java.lang.ClassNotFoundException
name - name of the class
java.lang.ClassNotFoundExceptionpublic java.net.URL getResource(java.lang.String name)
name - name of the resource
public void getResources(java.util.Vector<java.net.URL> resources,
java.lang.String name)
name - name of the resourcepublic java.io.InputStream getResourceAsStream(java.lang.String name)
name - name of the resourcepublic Path getPath(java.lang.String name)
protected java.security.CodeSource getCodeSource(Path path)
public final void buildClassPath(java.lang.StringBuilder head)
protected void buildClassPath(java.util.ArrayList<java.lang.String> pathList)
protected void buildSourcePath(java.lang.StringBuilder head)
protected void buildSourcePath(java.util.ArrayList<java.lang.String> pathList)
protected void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||