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

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


removeClassLoader

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


addClassLoader

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


removeClassLoader

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


getClassLoader

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


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.