|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
edu.gwu.util.FileClassLoader
The class FileClassLoader
contains methods to load classes from given files.
ClassLoader
Constructor Summary | |
FileClassLoader(java.lang.String path)
Creates a new FileClassLoader instance. |
Method Summary | |
java.lang.Class |
loadClass(java.lang.String name,
boolean resolveIt)
The loadClass method loads a class given its name. |
void |
setPath(java.lang.String path)
The setPath method sets the path to the give path. |
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileClassLoader(java.lang.String path)
FileClassLoader
instance.
path
- the path to the file.Method Detail |
public java.lang.Class loadClass(java.lang.String name, boolean resolveIt) throws java.lang.ClassNotFoundException
loadClass
method loads a class given its name.
name
- the name of the classresolveIt
- if true then the class will be resolved
Class
java.lang.ClassNotFoundException
- if an error occurspublic void setPath(java.lang.String path)
setPath
method sets the path to the give path.
path
- the new path to be set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |