All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.reference.common.LoaderRepository

java.lang.Object
   |
   +----com.sun.jaw.reference.common.LoaderRepository

public class LoaderRepository
extends Object
implements Serializable
The class is a repository for all the class loaders that can run inside a JDMK agent or it associated clients.


Constructor Index

 o LoaderRepository()

Method Index

 o addClassLoader(ClassLoader)
Add a class loader in the list of class loaders.
 o loadClass(String)
Go thru the list of class loaders and try to load the requested class.
 o loadClassWithout(ClassLoader, String)
Go thru the list of class loaders but exclude the given class loader, then try to load the requested class.
 o removeClassLoader(ClassLoader)
Remove a class loader from the list of class loaders.

Constructors

 o LoaderRepository
 public LoaderRepository()

Methods

 o addClassLoader
 public static void addClassLoader(ClassLoader aloader)
Add a class loader in the list of class loaders. A same class loader can be added several times.

 o removeClassLoader
 public static void removeClassLoader(ClassLoader aloader)
Remove a class loader from the list of class loaders.

 o loadClass
 public static Class loadClass(String className) throws ClassNotFoundException
Go thru the list of class loaders and try to load the requested class. The method will stop as soon as the class is found. If the class is not found the method will throw a ClassNotFoundException exception.

Throws: ClassNotFoundException
The specified class could not be found.
 o loadClassWithout
 public static Class loadClassWithout(ClassLoader aloader,
                                      String className) throws ClassNotFoundException
Go thru the list of class loaders but exclude the given class loader, then try to load the requested class. The method will stop as soon as the class is found. If the class is not found the method will throw a ClassNotFoundException exception.

Throws: ClassNotFoundException
The specified class could not be found.

All Packages  Class Hierarchy  This Package  Previous  Next  Index