All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class macondo.mak.AgentClassLoader

macondo.mak.AgentClassLoader

public class AgentClassLoader
Loads agent class bytes from a given source.


Constructor Index

 o AgentClassLoader(PlaceName, boolean, String)
Creates an AgentClassLoader to load classes from a place at the specified host and port.

Method Index

 o loadClass(String)
Loads a class with the specified name.
 o loadClass(String, boolean)
Loads a class with the specified name, resolving it if required.
 o loadClassBytes(String)
Loads class bytes from the specified source.

Constructors

 o AgentClassLoader
 public AgentClassLoader(PlaceName pname,
                         boolean save,
                         String path) throws IOException
Creates an AgentClassLoader to load classes from a place at the specified host and port.

Parameters:
pname - the code base name.
save - true if classes must be saved, false otherwise.
path - file system path where class files must be saved.
Throws: IOException
if any error with the connection occurs.

Methods

 o loadClass
 public Class loadClass(String class_name) throws ClassNotFoundException
Loads a class with the specified name. This method is called from external clients and the class is resolved before it is returned.

Parameters:
className - the name of the class to load.
Returns:
the requested Class, or null if it was not found.
Throws: ClassNotFoundException
if the class loader can't find a definition for the class.
 o loadClass
 public synchronized Class loadClass(String class_name,
                                     boolean resolve) throws ClassNotFoundException
Loads a class with the specified name, resolving it if required. This method is called from loadClass(java.lang.String) and internally during class resolving.

Parameters:
className - the name of the class to load.
resolve - true if the class must be resolved.
Returns:
the requested Class, or null if it was not found.
Throws: ClassNotFoundException
if the class loader can't find a definition for the class.
 o loadClassBytes
 protected byte[] loadClassBytes(String class_name)
Loads class bytes from the specified source.

Parameters:
className - the name of the class to load.
Returns:
a byte array holding the class file.

All Packages  Class Hierarchy  This Package  Previous  Next  Index