| javax.management.loading.ClassLoaderRepository
All known Subclasses: mx4j.server.ModifiableClassLoaderRepository,
ClassLoaderRepository | public interface ClassLoaderRepository (Code) | | A repository for ClassLoader MBeans.
A ClassLoaderRepository contains the ClassLoader that loaded the MBeanServer and
registered MBeans that are ClassLoader subclasses and that does not implement the
PrivateClassLoader interface.
The order of registration for ClassLoader MBeans is important, as it will define
the behavior of MLets, see
MLet.findClass ; the MBeanServer's ClassLoader is
always the first ClassLoader.
version: $Revision: 1.6 $ See Also: MLet See Also: javax.management.MBeanServer.getClassLoaderRepository |
Method Summary | |
public Class | loadClass(String className) Loads the given class iterating through the list of classloaders contained in this repository,
from the first to the last. | public Class | loadClassBefore(ClassLoader loader, String className) Loads the given class iterating through the list of classloaders contained in this repository,
from the first to the specified ClassLoader (that is not asked to load the class). | public Class | loadClassWithout(ClassLoader loader, String className) Loads the given class iterating through the list of classloaders contained in this repository,
from the first to the last, excluded the specified ClassLoader. |
loadClassBefore | public Class loadClassBefore(ClassLoader loader, String className) throws ClassNotFoundException(Code) | | Loads the given class iterating through the list of classloaders contained in this repository,
from the first to the specified ClassLoader (that is not asked to load the class).
Parameters: loader - The ClassLoader that should not be asked to load the class and where the search must stop Parameters: className - The name of the class to load The loaded class throws: ClassNotFoundException - If the class is not found |
loadClassWithout | public Class loadClassWithout(ClassLoader loader, String className) throws ClassNotFoundException(Code) | | Loads the given class iterating through the list of classloaders contained in this repository,
from the first to the last, excluded the specified ClassLoader.
The method returns as soon as the class is found, or throws a ClassNotFoundException
Parameters: loader - The ClassLoader that should not be asked to load the class Parameters: className - The name of the class to load The loaded class throws: ClassNotFoundException - If the class is not found See Also: ClassLoaderRepository.loadClassBefore |
|
|