javassist.scopedpool
Interface ScopedClassPoolRepository

All Known Implementing Classes:
ScopedClassPoolRepositoryImpl

public interface ScopedClassPoolRepository

An interface to ScopedClassPoolRepositoryImpl.

Version:
$Revision: 1.4 $
Author:
Kabir Khan

Method Summary
 void clearUnregisteredClassLoaders()
          This method will check to see if a register classloader has been undeployed (as in JBoss).
 ScopedClassPool createScopedClassPool(java.lang.ClassLoader cl, ClassPool src)
          Create a scoped classpool.
 ClassPool findClassPool(java.lang.ClassLoader cl)
          Finds a scoped classpool registered under the passed in classloader.
 ScopedClassPoolFactory getClassPoolFactory()
          Obtains the recorded factory.
 java.util.Map getRegisteredCLs()
          Get the registered classloaders.
 boolean isPrune()
          Returns whether or not the class pool is pruned.
 ClassPool registerClassLoader(java.lang.ClassLoader ucl)
          Register a classloader.
 void setClassPoolFactory(ScopedClassPoolFactory factory)
          Records a factory.
 void setPrune(boolean prune)
          Sets the prune flag.
 void unregisterClassLoader(java.lang.ClassLoader cl)
          Unregisters a classpool and unregisters its classloader.
 

Method Detail

setClassPoolFactory

void setClassPoolFactory(ScopedClassPoolFactory factory)
Records a factory.


getClassPoolFactory

ScopedClassPoolFactory getClassPoolFactory()
Obtains the recorded factory.


isPrune

boolean isPrune()
Returns whether or not the class pool is pruned.

Returns:
the prune.

setPrune

void setPrune(boolean prune)
Sets the prune flag.

Parameters:
prune - a new value.

createScopedClassPool

ScopedClassPool createScopedClassPool(java.lang.ClassLoader cl,
                                      ClassPool src)
Create a scoped classpool.

Parameters:
cl - the classloader.
src - the original classpool.
Returns:
the classpool.

findClassPool

ClassPool findClassPool(java.lang.ClassLoader cl)
Finds a scoped classpool registered under the passed in classloader.

Parameters:
cl - the classloader.
Returns:
the classpool.

registerClassLoader

ClassPool registerClassLoader(java.lang.ClassLoader ucl)
Register a classloader.

Parameters:
ucl - the classloader.
Returns:
the classpool.

getRegisteredCLs

java.util.Map getRegisteredCLs()
Get the registered classloaders.

Returns:
the registered classloaders.

clearUnregisteredClassLoaders

void clearUnregisteredClassLoaders()
This method will check to see if a register classloader has been undeployed (as in JBoss).


unregisterClassLoader

void unregisterClassLoader(java.lang.ClassLoader cl)
Unregisters a classpool and unregisters its classloader.

Parameters:
cl - the classloader the pool is stored under.


Copyright © 2011. All Rights Reserved.