| |
|
| java.lang.Object javax.management.loading.DefaultLoaderRepository
DefaultLoaderRepository | public class DefaultLoaderRepository implements Serializable(Code) | | Keeps the list of Class Loaders registered in the MBean Server. It provides
the necessary methods to load classes using the registered Class Loaders.
|
Method Summary | |
public static Class | loadClass(String className) Go through the list of class loaders and try to load the requested class.
The method will stop as soon as the class is found. | static Class | loadClass(Vector validLoaders, String className) Go through the list of class loaders and try to load the requested class.
The method will stop as soon as the class is found. | static Class | loadClassFromDefaultLoader(String className) | public static 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. |
loaders | protected static Vector loaders(Code) | | List of class loaders
|
DefaultLoaderRepository | public DefaultLoaderRepository()(Code) | | The default constructor
|
loadClass | public static Class loadClass(String className) throws ClassNotFoundException(Code) | | Go through 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.
Parameters: className - The name of the class to be loaded. This returns a Class after loading the requested class exception: java.lang.ClassNotFoundException - The specified classcould not be found. |
loadClass | static Class loadClass(Vector validLoaders, String className) throws ClassNotFoundException(Code) | | Go through 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.
Parameters: className - The name of the class to be loaded. This returns a Class after loading the requested class exception: java.lang.ClassNotFoundException - The specified classcould not be found. |
loadClassWithout | public static 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 stop 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. Parameters: loader - The class loader to be excluded. Returns a requested class which is loaded after goining throughthe list of class loaders but exclude the given class loader exception: java.lang.ClassNotFoundException - The specified classcould not be found. |
|
|
|