cs138.service
Interface ClassLoaderService

All Superinterfaces:
java.rmi.Remote

public interface ClassLoaderService
extends java.rmi.Remote

The ClassLoaderService is a remote object that provides a mechanism for loading class data from a remote source repository via RMI. This provides the ability to access class objects that are not currently in the classpath, but are in the classpath of a known remote host.

Author:
csiden

Method Summary
 byte[] getClassData(java.lang.String classname)
          Looks up the class data that is needed by java to instantiate a new instance of a specific class specified by the fully qualified package name in classname.
 

Method Detail

getClassData

byte[] getClassData(java.lang.String classname)
                    throws java.rmi.RemoteException,
                           java.lang.ClassNotFoundException
Looks up the class data that is needed by java to instantiate a new instance of a specific class specified by the fully qualified package name in classname. This is handling the process of getting all the data that is needed by a ClassLoader to instantiate the new class.

Parameters:
classname - The full package classname of the Class
Returns:
The byte data that is necessary for a ClassLoader to instantiate an instance of the class
Throws:
java.rmi.RemoteException
java.lang.ClassNotFoundException