APIdia Launch Partner
Top Description Methods
com.sun.jmx.mbeanserver

public Interface ModifiableClassLoaderRepository

extends ClassLoaderRepository
Known Direct Implementers
com.sun.jmx.mbeanserver.ClassLoaderRepositorySupport
Imports
javax.management.ObjectName, javax.management.loading.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
1.5

Method Summary

Modifier and TypeMethod and Description
public void
addClassLoader(ClassLoader loader)

Add an anonymous ClassLoader to the repository.

public void
addClassLoader(ObjectName name, ClassLoader loader)

Add a named ClassLoader to the repository.

public ClassLoader
getClassLoader(ObjectName name)

Get a named ClassLoader from the repository.

public void
removeClassLoader(ClassLoader loader)

Remove the specified ClassLoader to the repository.

public void
removeClassLoader(ObjectName name)

Remove a named ClassLoader from the repository.

Inherited from javax.management.loading.ClassLoaderRepository:
loadClassloadClassBeforeloadClassWithout

Method Detail

addClassLoaderback to summary
public void addClassLoader(ClassLoader loader)

Add an anonymous ClassLoader to the repository.

addClassLoaderback to summary
public void addClassLoader(ObjectName name, ClassLoader loader)

Add a named ClassLoader to the repository.

getClassLoaderback to summary
public ClassLoader getClassLoader(ObjectName name)

Get a named ClassLoader from the repository.

removeClassLoaderback to summary
public void removeClassLoader(ClassLoader loader)

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

removeClassLoaderback to summary
public void removeClassLoader(ObjectName name)

Remove a named ClassLoader from the repository.