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.
-
LoaderRepository()
-
-
addClassLoader(ClassLoader)
- Add a class loader in the list of class loaders.
-
loadClass(String)
- Go thru the list of class loaders and try to load the requested class.
-
loadClassWithout(ClassLoader, String)
- Go thru the list of class loaders but exclude the given class loader, then try to load
the requested class.
-
removeClassLoader(ClassLoader)
- Remove a class loader from the list of class loaders.
LoaderRepository
public LoaderRepository()
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.
removeClassLoader
public static void removeClassLoader(ClassLoader aloader)
- Remove a class loader from the list of class loaders.
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.
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