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
-
BasicClassLoader()
-
-
loadClass(String)
- Loads a class by name using a specilized mechanism to load the class
file.
-
loadClass(String, boolean)
- Loads a class by name using a specilized mechanism to load the class
file.
-
loadClassBytes(String)
- This method will load the byte array corresponding to the
class code.
BasicClassLoader
public BasicClassLoader()
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
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
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