mx4j.server
Class ModifiableClassLoaderRepository
java.lang.Object
mx4j.server.ModifiableClassLoaderRepository
- javax.management.loading.ClassLoaderRepository
public abstract class ModifiableClassLoaderRepository
extends java.lang.Object
implements javax.management.loading.ClassLoaderRepository
Base class to extend to create custom ClassLoaderRepositories.
MX4J's MBeanServer can use a custom ClassLoaderRepository instead of the default one
by simply specifying a suitable system property, see
MX4JSystemKeys
.
It must be a class, otherwise it opens up a security hole, as anyone can cast the MBeanServer's
ClassLoaderRepository down to this class and call addClassLoader or removeClassLoader
since, if this class is an interface, they must be public.
Version:
protected void | addClassLoader(ClassLoader cl) - Adds, if does not already exist, the specified ClassLoader to this repository.
|
protected void | removeClassLoader(ClassLoader cl) - Removes, if exists, the specified ClassLoader from this repository.
|
addClassLoader
protected void addClassLoader(ClassLoader cl)
Adds, if does not already exist, the specified ClassLoader to this repository.
cl
- The classloader to add
removeClassLoader(ClassLoader)
removeClassLoader
protected void removeClassLoader(ClassLoader cl)
Removes, if exists, the specified ClassLoader from this repository.
cl
- The classloader to remove
addClassLoader(ClassLoader)
Copyright © 2001-2003 MX4J Team. All Rights Reserved.