| javax.management.loading.ClassLoaderRepository
ClassLoaderRepository | public interface ClassLoaderRepository (Code) | | Instances of this interface are used to keep the list of Class Loaders registered in a MBean Server.
They provide the necessary methods to load classes using the registered Class Loaders.
author: Young Yang |
Method Summary | |
public Class | loadClass(String className) Go through the list of class loaders and try to load the requested class. | public Class | loadClassWithout(ClassLoader loader, String className) Go through the list of class loaders but exclude the given class loader,
then try to load the requested class. |
loadClass | public Class loadClass(String className) throws ClassNotFoundException(Code) | | Go through the list of class loaders and try to load the requested class.
The method will doStop as soon as the class is found.
If the class is not found the method will throw a ClassNotFoundException exception
Parameters: className - The name of the class to be loaded. throws: ClassNotFoundException - |
loadClassWithout | public Class loadClassWithout(ClassLoader loader, String className) throws ClassNotFoundException(Code) | | Go through the list of class loaders but exclude the given class loader,
then try to load the requested class. The method will doStop as soon as the class is found.
If the class is not found the method will throw a ClassNotFoundException exception
Parameters: loader - The class loader to be excluded. Parameters: className - The name of the class to be loaded. throws: ClassNotFoundException - |
|
|