com.sun.jdmk
Interface ModifiableClassLoaderRepository

All Superinterfaces:
ClassLoaderRepository
All Known Implementing Classes:
ClassLoaderRepositorySupport

public interface ModifiableClassLoaderRepository
extends ClassLoaderRepository

This interface keeps the list of Class Loaders registered in the MBean Server. It provides the necessary methods to load classes using the registered Class Loaders, and to add/remove class loaders from the list.

Since:
Java DMK 5.0

Method Summary
 void addClassLoader(ClassLoader loader)
          Add an anonymous ClassLoader to the repository.
 void addClassLoader(ObjectName name, ClassLoader loader)
          Add a named ClassLoader to the repository.
 ClassLoader getClassLoader(ObjectName name)
          Get a named ClassLoader from the repository.
 void removeClassLoader(ClassLoader loader)
          Remove the specified ClassLoader to the repository.
 void removeClassLoader(ObjectName name)
          Remove a named ClassLoader from the repository.
 
Methods inherited from interface javax.management.loading.ClassLoaderRepository
loadClass, loadClassBefore, loadClassWithout
 

Method Detail

addClassLoader

public void addClassLoader(ClassLoader loader)
Add an anonymous ClassLoader to the repository.


removeClassLoader

public void removeClassLoader(ClassLoader loader)
Remove the specified ClassLoader to the repository. The class loader may or may not be anonymous.


addClassLoader

public void addClassLoader(ObjectName name,
                           ClassLoader loader)
Add a named ClassLoader to the repository.


removeClassLoader

public void removeClassLoader(ObjectName name)
Remove a named ClassLoader from the repository.


getClassLoader

public ClassLoader getClassLoader(ObjectName name)
Get a named ClassLoader from the repository.


FCS Release
jdmk-5_1-b34.2 2005.11.29_16:24:00_MET

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