All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sics.agentbase.core.BasicClassLoader

java.lang.Object
   |
   +----java.lang.ClassLoader
           |
           +----sics.agentbase.core.BasicClassLoader

public abstract class BasicClassLoader
extends ClassLoader

Constructor Index

 o BasicClassLoader()

Method Index

 o loadClass(String)
Loads a class by name using a specilized mechanism to load the class file.
 o loadClass(String, boolean)
Loads a class by name using a specilized mechanism to load the class file.
 o loadClassBytes(String)
This method will load the byte array corresponding to the class code.

Constructors

 o BasicClassLoader
 public BasicClassLoader()

Methods

 o loadClass
 public Class loadClass(String name) throws ClassNotFoundException
Loads a class by name using a specilized mechanism to load the class file. The mechanism is encapsulated in the abstract method loadClassBytes() which is defined in each specialized class loader extending BasicClassLoader. The loader looks for class in a local cache first, in the class path second and finally using the specilized way to load the class file.

Parameters:
name - The name of the class to be loaded, without trailing ".class".
Returns:
The resulting class.
Overrides:
loadClass in class ClassLoader
See Also:
loadClass
 o loadClass
 public synchronized Class loadClass(String name,
                                     boolean resolveIt) throws ClassNotFoundException
Loads a class by name using a specilized mechanism to load the class file. The mechanism is encapsulated in the abstract method loadClassBytes() which is defined in each specialized class loader extending BasicClassLoader. The loader looks for class in a local cache first, in the class path second and finally using the specilized way to load the class file.

Parameters:
name - The name of the class to be loaded, without trailing ".class".
resolveIt - Flag specifying whether the new class should be resolved.
Returns:
The resulting class.
Overrides:
loadClass in class ClassLoader
See Also:
loadClass
 o loadClassBytes
 protected abstract byte[] loadClassBytes(String name)
This method will load the byte array corresponding to the class code. It is an abstract method and a specialized class loader defines the way in which the bytes are loaded.

Parameters:
name - The name of the class to load.
Returns:
An array of bytes corresponding to the class code.

All Packages  Class Hierarchy  This Package  Previous  Next  Index