com.sun.jdmk
Class ClassLoaderRepositorySupport

java.lang.Object
  extended by com.sun.jdmk.ClassLoaderRepositorySupport
All Implemented Interfaces:
ModifiableClassLoaderRepository, ClassLoaderRepository

Deprecated. Use MBeanServer.getClassLoaderRepository() instead.

public final class ClassLoaderRepositorySupport
extends Object
implements ModifiableClassLoaderRepository

This class 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 class is provided uniquely for compatibility with Java DMK 5.0.

Since:
Java DMK 5.0

Constructor Summary
ClassLoaderRepositorySupport()
          Deprecated.  
 
Method Summary
 void addClassLoader(ClassLoader loader)
          Deprecated. Add an anonymous ClassLoader to the repository.
 void addClassLoader(ObjectName name, ClassLoader loader)
          Deprecated. Add a named ClassLoader to the repository.
 ClassLoader getClassLoader(ObjectName name)
          Deprecated. Get a named ClassLoader from the repository.
 Class loadClass(String className)
          Deprecated.  
 Class loadClassBefore(ClassLoader stop, String className)
          Deprecated.  
 Class loadClassWithout(ClassLoader without, String className)
          Deprecated.  
 void removeClassLoader(ClassLoader loader)
          Deprecated. Remove the specified ClassLoader to the repository.
 void removeClassLoader(ObjectName name)
          Deprecated. Remove a named ClassLoader from the repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderRepositorySupport

public ClassLoaderRepositorySupport()
Deprecated. 
Method Detail

loadClass

public final Class loadClass(String className)
                      throws ClassNotFoundException
Deprecated. 
Specified by:
loadClass in interface ClassLoaderRepository
Throws:
ClassNotFoundException

loadClassWithout

public final Class loadClassWithout(ClassLoader without,
                                    String className)
                             throws ClassNotFoundException
Deprecated. 
Specified by:
loadClassWithout in interface ClassLoaderRepository
Throws:
ClassNotFoundException

loadClassBefore

public final Class loadClassBefore(ClassLoader stop,
                                   String className)
                            throws ClassNotFoundException
Deprecated. 
Specified by:
loadClassBefore in interface ClassLoaderRepository
Throws:
ClassNotFoundException

addClassLoader

public final void addClassLoader(ClassLoader loader)
Deprecated. 
Description copied from interface: ModifiableClassLoaderRepository
Add an anonymous ClassLoader to the repository.

Specified by:
addClassLoader in interface ModifiableClassLoaderRepository

removeClassLoader

public final void removeClassLoader(ClassLoader loader)
Deprecated. 
Description copied from interface: ModifiableClassLoaderRepository
Remove the specified ClassLoader to the repository. The class loader may or may not be anonymous.

Specified by:
removeClassLoader in interface ModifiableClassLoaderRepository

addClassLoader

public final void addClassLoader(ObjectName name,
                                 ClassLoader loader)
Deprecated. 
Description copied from interface: ModifiableClassLoaderRepository
Add a named ClassLoader to the repository.

Specified by:
addClassLoader in interface ModifiableClassLoaderRepository

removeClassLoader

public final void removeClassLoader(ObjectName name)
Deprecated. 
Description copied from interface: ModifiableClassLoaderRepository
Remove a named ClassLoader from the repository.

Specified by:
removeClassLoader in interface ModifiableClassLoaderRepository

getClassLoader

public final ClassLoader getClassLoader(ObjectName name)
Deprecated. 
Description copied from interface: ModifiableClassLoaderRepository
Get a named ClassLoader from the repository.

Specified by:
getClassLoader in interface ModifiableClassLoaderRepository

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.