ScopedClassPoolRepository.
It is an singleton.
| Modifier and Type | Field and Description |
|---|---|
| protected ClassPool | classpool
The default class pool |
| protected ScopedClassPoolFactory | factory
The factory for creating class pools |
| private static final ScopedClassPoolRepositoryImpl | instance
The instance |
| private boolean | prune
Whether to prune |
| pack-priv boolean | pruneWhenCached
Whether to prune when added to the classpool's cache |
| protected Map | registeredCLs
The registered classloaders |
| Access | Constructor and Description |
|---|---|
| private |
| classpool | back to summary |
|---|---|
| protected ClassPool classpool The default class pool | |
| factory | back to summary |
|---|---|
| protected ScopedClassPoolFactory factory The factory for creating class pools | |
| instance | back to summary |
|---|---|
| private static final ScopedClassPoolRepositoryImpl instance The instance | |
| prune | back to summary |
|---|---|
| private boolean prune Whether to prune | |
| pruneWhenCached | back to summary |
|---|---|
| pack-priv boolean pruneWhenCached Whether to prune when added to the classpool's cache | |
| registeredCLs | back to summary |
|---|---|
| protected Map<ClassLoader, ScopedClassPool> registeredCLs The registered classloaders | |
| ScopedClassPoolRepositoryImpl | back to summary |
|---|---|
| private ScopedClassPoolRepositoryImpl() Singleton. | |
| clearUnregisteredClassLoaders | back to summary |
|---|---|
| public void clearUnregisteredClassLoaders() Implements javassist. This method will check to see if a register classloader has been undeployed (as in JBoss)
| |
| createScopedClassPool | back to summary |
|---|---|
| public ScopedClassPool createScopedClassPool(ClassLoader cl, ClassPool src) Implements javassist. Create a scoped classpool.
| |
| findClassPool | back to summary |
|---|---|
| public ClassPool findClassPool(ClassLoader cl) Implements javassist. Doc from javassist. Finds a scoped classpool registered under the passed in classloader.
| |
| getClassPoolFactory | back to summary |
|---|---|
| public ScopedClassPoolFactory getClassPoolFactory() Implements javassist. Doc from javassist. Obtains the recorded factory.
| |
| getInstance | back to summary |
|---|---|
| public static ScopedClassPoolRepository getInstance() Get the instance.
| |
| getRegisteredCLs | back to summary |
|---|---|
| public Map Implements javassist. Get the registered classloaders.
| |
| insertDelegate | back to summary |
|---|---|
| public void insertDelegate(ScopedClassPoolRepository delegate) | |
| isPrune | back to summary |
|---|---|
| public boolean isPrune() Implements javassist. Returns the value of the prune attribute.
| |
| registerClassLoader | back to summary |
|---|---|
| public ClassPool registerClassLoader(ClassLoader ucl) Implements javassist. Register a classloader.
| |
| setClassPoolFactory | back to summary |
|---|---|
| public void setClassPoolFactory(ScopedClassPoolFactory factory) Implements javassist. Doc from javassist. Records a factory.
| |
| setPrune | back to summary |
|---|---|
| public void setPrune(boolean prune) Implements javassist. Set the prune attribute.
| |
| unregisterClassLoader | back to summary |
|---|---|
| public void unregisterClassLoader(ClassLoader cl) Implements javassist. Doc from javassist. Unregisters a classpool and unregisters its classloader.
| |