dcf.server
Class DCFClassLoader

dcf.server.DCFClassLoader

public class DCFClassLoader

Loads a .class file into a Class and return an instance of the class It extends the default ClassLoader so the we can load a .class file and create an Object without knowing its qualified name.
For instance it can load the file String.class istead of initializing java.lang.String

Author:
Tal Salmona

Constructor Summary
DCFClassLoader()
           
 
Method Summary
 java.lang.Object create(dcf.server.String fileName)
           
protected  dcf.server.Class findClass(dcf.server.String fileName)
          Creates the Class object
 

Constructor Detail

DCFClassLoader

public DCFClassLoader()
Method Detail

create

public java.lang.Object create(dcf.server.String fileName)
Parameters:
fileName - The path to the .class file to load.

findClass

protected dcf.server.Class findClass(dcf.server.String fileName)
Creates the Class object
Parameters:
fileName - The .class file to get.
Returns:
A Class created from the file.




Distributed Computation Framework