public interface

ModifiableClassLoaderRepository

implements ClassLoaderRepository
com.sun.jmx.mbeanserver.ModifiableClassLoaderRepository

Class Overview

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.

Summary

Public Methods
abstract void addClassLoader(ObjectName name, ClassLoader loader)
Add a named ClassLoader to the repository.
abstract void addClassLoader(ClassLoader loader)
Add an anonymous ClassLoader to the repository.
abstract ClassLoader getClassLoader(ObjectName name)
Get a named ClassLoader from the repository.
abstract void removeClassLoader(ClassLoader loader)
Remove the specified ClassLoader to the repository.
abstract void removeClassLoader(ObjectName name)
Remove a named ClassLoader from the repository.
[Expand]
Inherited Methods
From interface javax.management.loading.ClassLoaderRepository

Public Methods

public abstract void addClassLoader (ObjectName name, ClassLoader loader)

Add a named ClassLoader to the repository.

public abstract void addClassLoader (ClassLoader loader)

Add an anonymous ClassLoader to the repository.

public abstract ClassLoader getClassLoader (ObjectName name)

Get a named ClassLoader from the repository.

public abstract void removeClassLoader (ClassLoader loader)

Remove the specified ClassLoader to the repository. The class loader may or may not be anonymous.

public abstract void removeClassLoader (ObjectName name)

Remove a named ClassLoader from the repository.