|
Enhydra 3.0.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for object that is used to load the primary classes and find the source files. This provides methods for loading a class that are not found in the default classLoader interface. This is necessary as this This is not used to load the delegate classes. The lookup of File objects is cached by the caller, so there is no need to do caching in implementations of this interface.
Method Summary | |
java.io.File |
getClassFile(java.lang.Class classObj)
Get a File object associated with a class. |
java.lang.ClassLoader |
getClassLoader()
Get the class loader associated with this resource loader. |
java.net.URL[] |
getClassPath()
Get the class path associate with this resource loader. |
java.io.File |
getResourceFile(java.lang.String name)
Get a File object associated with a resource. |
java.net.URL[] |
getSystemClassPath()
Get the system class path. |
java.lang.Class |
loadClass(java.lang.String className)
Load the specified class. |
void |
setClassLoader(java.lang.ClassLoader loader)
Set the class loader this class is associated with. |
Method Detail |
public void setClassLoader(java.lang.ClassLoader loader)
public java.net.URL[] getClassPath()
public java.net.URL[] getSystemClassPath()
public java.lang.ClassLoader getClassLoader()
public java.io.File getClassFile(java.lang.Class classObj) throws java.lang.ClassNotFoundException
public java.io.File getResourceFile(java.lang.String name) throws java.lang.ClassNotFoundException
public java.lang.Class loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
|
Enhydra 3.0.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |