edu.gwu.simplenetsim
Class FileClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by edu.gwu.simplenetsim.FileClassLoader

public class FileClassLoader
extends java.lang.ClassLoader

The class FileClassLoader contains methods to load classes from given files.

See Also:
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, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileClassLoader

public FileClassLoader(java.lang.String path)
Creates a new FileClassLoader instance.

Parameters:
path - the path to the file.
Method Detail

loadClass

public java.lang.Class loadClass(java.lang.String name,
                                 boolean resolveIt)
                          throws java.lang.ClassNotFoundException
The loadClass method loads a class given its name.

Overrides:
loadClass in class java.lang.ClassLoader
Parameters:
name - the name of the class
resolveIt - if true then the class will be resolved
Returns:
the corresponding Class
Throws:
java.lang.ClassNotFoundException - if an error occurs

setPath

public void setPath(java.lang.String path)
The setPath method sets the path to the give path.

Parameters:
path - the new path to be set.