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

## javax.management.loading
Interface ClassLoaderRepository

All Known Subinterfaces:
  ExtendedClassLoaderRepository

All Known Implementing Classes:
  ClassLoaderRepositorySupport

public interface ClassLoaderRepository

Instances of this interface are used to keep the list of Class Loaders registered in a MBean Server. They provide the necessary methods to load classes using the registered Class Loaders.

Author:
  Young Yang

Method Summary
`java.lang.Class` | `loadClass(java.lang.String className)` Go through the list of class loaders and try to load the requested class.
`java.lang.Class` | `loadClassWithout(java.lang.ClassLoader loader, java.lang.String className)` Go through the list of class loaders but exclude the given class loader, then try to load the requested class.

Method Detail

### loadClass

    public java.lang.Class loadClass(java.lang.String className)
                              throws java.lang.ClassNotFoundException

  Go through the list of class loaders and try to load the requested class. The method will stop as soon as the class is found. If the class is not found the method will throw a ClassNotFoundException exception

  Parameters:
    `className` - The name of the class to be loaded.
  Throws:
    `java.lang.ClassNotFoundException`

### loadClassWithout

    public java.lang.Class loadClassWithout(java.lang.ClassLoader loader,
                                            java.lang.String className)
                                     throws java.lang.ClassNotFoundException

  Go through the list of class loaders but exclude the given class loader, then try to load the requested class. The method will stop as soon as the class is found. If the class is not found the method will throw a ClassNotFoundException exception

  Parameters:
    `loader` - The class loader to be excluded.
    `className` - The name of the class to be loaded.
  Throws:
    `java.lang.ClassNotFoundException`

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