|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.loading.DefaultLoaderRepository
A Singleton class which keeps the list of ClassLoaders registered in the MBeanServer. It provides methods to load classes using the registered classLoaders
Method Summary | |
static java.lang.Class |
loadClass(java.lang.String className)
Go through the list of class loaders and try to load the requested class. |
static java.lang.Class |
loadClassWithout(java.lang.ClassLoader loader,
java.lang.String className)
Try to load the class with the list of classloaders without using the given classLoader. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.Class loadClass(java.lang.String className) throws java.lang.ClassNotFoundException
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 it is not found a ClassNotFoundException will be thrown
className
- - the string represented name of the class to be loaded.
java.lang.ClassNotFoundException
- - if the class was not foundMBeanServerFactory.getClassLoaderRepository(javax.management.MBeanServer)
public static java.lang.Class loadClassWithout(java.lang.ClassLoader loader, java.lang.String className) throws java.lang.ClassNotFoundException
Try to load the class with the list of classloaders without using the given classLoader. The method will stop as soon as the class is found, will throw a ClassNotFoundException if the class is not found
loader
- - the ClassLoader to exclude from the list of classLoaders used to load the class
java.lang.ClassNotFoundException
- - if the class was not found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |