javax.management.loading
Class DefaultLoaderRepository

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.loading.DefaultLoaderRepository

Deprecated. Use MBeanServer.getClassLoaderRepository() sample code for javax.management.MBeanServer.getClassLoaderRepository() definition code for javax.management.MBeanServer.getClassLoaderRepository() } instead.

@Deprecated
public class DefaultLoaderRepository
extends Object sample code for java.lang.Object definition code for java.lang.Object

Keeps the list of Class Loaders registered in the MBean Server. It provides the necessary methods to load classes using the registered Class Loaders.

This deprecated class is maintained for compatibility. In previous versions of JMX, there was one DefaultLoaderRepository shared by all MBean servers. As of JMX 1.2, that functionality is approximated by using MBeanServerFactory.findMBeanServer(java.lang.String) sample code for javax.management.MBeanServerFactory.findMBeanServer(java.lang.String) definition code for javax.management.MBeanServerFactory.findMBeanServer(java.lang.String) to find all known MBean servers, and consulting the ClassLoaderRepository sample code for javax.management.loading.ClassLoaderRepository definition code for javax.management.loading.ClassLoaderRepository of each one. It is strongly recommended that code referencing DefaultLoaderRepository be rewritten.

Since:
1.5

Constructor Summary
DefaultLoaderRepository sample code for javax.management.loading.DefaultLoaderRepository.DefaultLoaderRepository() definition code for javax.management.loading.DefaultLoaderRepository.DefaultLoaderRepository() ()
          Deprecated.  
 
Method Summary
static Class sample code for java.lang.Class definition code for java.lang.Class loadClass sample code for javax.management.loading.DefaultLoaderRepository.loadClass(java.lang.String) definition code for javax.management.loading.DefaultLoaderRepository.loadClass(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  className)
          Deprecated. Go through the list of class loaders and try to load the requested class.
static Class sample code for java.lang.Class definition code for java.lang.Class loadClassWithout sample code for javax.management.loading.DefaultLoaderRepository.loadClassWithout(java.lang.ClassLoader, java.lang.String) definition code for javax.management.loading.DefaultLoaderRepository.loadClassWithout(java.lang.ClassLoader, java.lang.String) (ClassLoader sample code for java.lang.ClassLoader definition code for java.lang.ClassLoader  loader, String sample code for java.lang.String definition code for java.lang.String  className)
          Deprecated. Go through the list of class loaders but exclude the given class loader, then try to load the requested class.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

DefaultLoaderRepository sample code for javax.management.loading.DefaultLoaderRepository() definition code for javax.management.loading.DefaultLoaderRepository()

public DefaultLoaderRepository()
Deprecated. 
Method Detail

loadClass sample code for javax.management.loading.DefaultLoaderRepository.loadClass(java.lang.String) definition code for javax.management.loading.DefaultLoaderRepository.loadClass(java.lang.String)

public static Class sample code for java.lang.Class definition code for java.lang.Class  loadClass(String sample code for java.lang.String definition code for java.lang.String  className)
                       throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Deprecated. 
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.
Returns:
the loaded class.
Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException - The specified class could not be found.

loadClassWithout sample code for javax.management.loading.DefaultLoaderRepository.loadClassWithout(java.lang.ClassLoader, java.lang.String) definition code for javax.management.loading.DefaultLoaderRepository.loadClassWithout(java.lang.ClassLoader, java.lang.String)

public static Class sample code for java.lang.Class definition code for java.lang.Class  loadClassWithout(ClassLoader sample code for java.lang.ClassLoader definition code for java.lang.ClassLoader  loader,
                                     String sample code for java.lang.String definition code for java.lang.String  className)
                              throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Deprecated. 
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.
loader - The class loader to be excluded.
Returns:
the loaded class.
Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException - The specified class could not be found.