| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ClassLoaderRepositorySupport. | |
| private ClassLoaderRepositorySupport. | loaders
List of class loaders Only read-only actions should be performed on this object. |
| private final Map | loadersWithNames
List of named class loaders. |
| private final Map | search
List of valid search |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized boolean | |
| public final void | addClassLoader(ClassLoader loader)
Implements com. Add an anonymous ClassLoader to the repository. |
| public final synchronized void | addClassLoader(ObjectName name, ClassLoader loader)
Implements com. Add a named ClassLoader to the repository. |
| public final ClassLoader | getClassLoader(ObjectName name)
Implements com. Get a named ClassLoader from the repository. |
| public final Class | loadClass(String className)
Implements javax. Load the given class name through the list of class loaders. |
| private Class | loadClass(final ClassLoaderRepositorySupport.
|
| public final Class | loadClassBefore(ClassLoader stop, String className)
Implements javax. Load the given class name through the list of class loaders, stopping at the given one. |
| public final Class | loadClassWithout(ClassLoader without, String className)
Implements javax. Load the given class name through the list of class loaders, excluding the given one. |
| private synchronized boolean | |
| public final void | removeClassLoader(ClassLoader loader)
Implements com. Remove the specified ClassLoader to the repository. |
| public final synchronized void | removeClassLoader(ObjectName name)
Implements com. Remove a named ClassLoader from the repository. |
| private synchronized void | |
| private synchronized void |
| EMPTY_LOADER_ARRAY | back to summary |
|---|---|
| private static final ClassLoaderRepositorySupport. | |
| loaders | back to summary |
|---|---|
| private ClassLoaderRepositorySupport. List of class loaders Only read-only actions should be performed on this object. We do O(n) operations on this array, e.g. when removing a ClassLoader. The assumption is that the number of elements is small, probably less than ten, and that the vast majority of operations are searches (loadClass) which are by definition linear. | |
| loadersWithNames | back to summary |
|---|---|
| private final Map<ObjectName, ClassLoader> loadersWithNames List of named class loaders. | |
| search | back to summary |
|---|---|
| private final Map<String, List<ClassLoader>> search List of valid search | |
| ClassLoaderRepositorySupport | back to summary |
|---|---|
| pack-priv ClassLoaderRepositorySupport() | |
| add | back to summary |
|---|---|
| private synchronized boolean add(ObjectName name, ClassLoader cl) Same behavior as add(Object o) in | |
| addClassLoader | back to summary |
|---|---|
| public final void addClassLoader(ClassLoader loader) Implements com. Doc from com. Add an anonymous ClassLoader to the repository. | |
| addClassLoader | back to summary |
|---|---|
| public final synchronized void addClassLoader(ObjectName name, ClassLoader loader) Implements com. Doc from com. Add a named ClassLoader to the repository. | |
| getClassLoader | back to summary |
|---|---|
| public final ClassLoader getClassLoader(ObjectName name) Implements com. Doc from com. Get a named ClassLoader from the repository. | |
| loadClass | back to summary |
|---|---|
| public final Class Implements javax. Doc from javax. Load the given class name through the list of class loaders.
Each ClassLoader in turn from the ClassLoaderRepository is
asked to load the class via its
| |
| loadClass | back to summary |
|---|---|
| private Class | |
| loadClassBefore | back to summary |
|---|---|
| public final Class Implements javax. Doc from javax. Load the given class name through the list of class loaders,
stopping at the given one. Each ClassLoader in turn from the
ClassLoaderRepository is asked to load the class via its Typically this method is called from the
| |
| loadClassWithout | back to summary |
|---|---|
| public final Class Implements javax. Doc from javax. Load the given class name through the list of class loaders,
excluding the given one. Each ClassLoader in turn from the
ClassLoaderRepository, except Be aware that if a ClassLoader in the ClassLoaderRepository
calls this method from its
| |
| remove | back to summary |
|---|---|
| private synchronized boolean remove(ObjectName name, ClassLoader cl) Same behavior as remove(Object o) in | |
| removeClassLoader | back to summary |
|---|---|
| public final void removeClassLoader(ClassLoader loader) Implements com. Doc from com. Remove the specified ClassLoader to the repository. The class loader may or may not be anonymous. | |
| removeClassLoader | back to summary |
|---|---|
| public final synchronized void removeClassLoader(ObjectName name) Implements com. Doc from com. Remove a named ClassLoader from the repository. | |
| startValidSearch | back to summary |
|---|---|
| private synchronized void startValidSearch(ClassLoader aloader, String className) throws ClassNotFoundException | |
| stopValidSearch | back to summary |
|---|---|
| private synchronized void stopValidSearch(ClassLoader aloader, String className) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ClassLoader | |
| pack-priv ObjectName |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| loader | back to summary |
|---|---|
| pack-priv ClassLoader loader | |
| name | back to summary |
|---|---|
| pack-priv ObjectName name | |
| LoaderEntry | back to summary |
|---|---|
| pack-priv LoaderEntry(ObjectName name, ClassLoader loader) | |