Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## mx4j.server
Class ModifiableClassLoaderRepository

    java.lang.Object
      mx4j.server.ModifiableClassLoaderRepository

All Implemented Interfaces:
  javax.management.loading.ClassLoaderRepository

Direct Known Subclasses:
  DefaultClassLoaderRepository

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:
  $Revision: 1.4 $

Constructor Summary
`ModifiableClassLoaderRepository()`

Method Summary
`protected abstract void` | `addClassLoader(java.lang.ClassLoader cl)` Adds, if does not already exist, the specified ClassLoader to this repository.
`protected abstract void` | `removeClassLoader(java.lang.ClassLoader cl)` Removes, if exists, the specified ClassLoader from this repository.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface javax.management.loading.ClassLoaderRepository
`loadClass, loadClassBefore, loadClassWithout`

Constructor Detail

### ModifiableClassLoaderRepository

    public ModifiableClassLoaderRepository()

Method Detail

### addClassLoader

    protected abstract void addClassLoader(java.lang.ClassLoader cl)

  Adds, if does not already exist, the specified ClassLoader to this repository.

  Parameters:
    `cl` - The classloader to add
  See Also:
    `removeClassLoader(java.lang.ClassLoader)`

### removeClassLoader

    protected abstract void removeClassLoader(java.lang.ClassLoader cl)

  Removes, if exists, the specified ClassLoader from this repository.

  Parameters:
    `cl` - The classloader to remove
  See Also:
    `addClassLoader(java.lang.ClassLoader)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.