|
JBoss ClassPool Parent POM 1.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.classpool.scoped.ScopedClassPoolRepositoryImpl
org.jboss.classpool.spi.ClassPoolRepository
public class ClassPoolRepository
Singleton classpool repository.
Field Summary |
---|
Fields inherited from class org.jboss.classpool.scoped.ScopedClassPoolRepositoryImpl |
---|
classpool, factory, registeredCLs |
Constructor Summary | |
---|---|
protected |
ClassPoolRepository()
Constructor. |
Method Summary | |
---|---|
void |
addClassPoolRepositoryCallback(ClassPoolRepositoryCallback callback)
Adds a callback object for notifications on classloader registration. |
List<ClassPoolRepositoryCallback> |
getClassPoolRepositoryCallbacks()
Returns the callback objects. |
static ClassPoolRepository |
getInstance()
Returns the singleton instance. |
javassist.ClassPool |
registerClassLoader(ClassLoader classLoader)
Registers classLoader and returns the corresponding ClassPool . |
boolean |
removeClassPoolRepositoryCallback(ClassPoolRepositoryCallback callback)
Removes a callback object. |
void |
setClassPoolFactory(ScopedClassPoolFactory factory)
Defines the ClassPoolFactory that will be used by this repository. |
void |
unregisterClassLoader(ClassLoader classLoader)
Unregisters classLoader . |
Methods inherited from class org.jboss.classpool.scoped.ScopedClassPoolRepositoryImpl |
---|
clearUnregisteredClassLoaders, createScopedClassPool, findClassPool, getClassPoolFactory, getRegisteredCLs, insertDelegate, isPrune, setPrune |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ClassPoolRepository()
Method Detail |
---|
public static ClassPoolRepository getInstance()
public void setClassPoolFactory(ScopedClassPoolFactory factory)
setClassPoolFactory
in interface ScopedClassPoolRepository
setClassPoolFactory
in class ScopedClassPoolRepositoryImpl
factory
- the ClassPoolFactory that is responsible for creating ClassPools for this repository.
if this factory implements ClassLoaderRegistryHandlerFactory
interface,
it will also be responsible for creating a ClassLoaderRegistryHandler for this
repositorypublic void addClassPoolRepositoryCallback(ClassPoolRepositoryCallback callback)
callback
- the callback object
IllegalArgumentException
- if the passed in callback was nullClassPoolRepositoryCallback
public List<ClassPoolRepositoryCallback> getClassPoolRepositoryCallbacks()
public boolean removeClassPoolRepositoryCallback(ClassPoolRepositoryCallback callback)
callback
- the callback objectpublic javassist.ClassPool registerClassLoader(ClassLoader classLoader)
classLoader
and returns the corresponding ClassPool
.
registerClassLoader
in interface ScopedClassPoolRepository
registerClassLoader
in class ScopedClassPoolRepositoryImpl
classLoader
- the ClassLoader to be added to this repository
classLoader
public void unregisterClassLoader(ClassLoader classLoader)
classLoader
.
unregisterClassLoader
in interface ScopedClassPoolRepository
unregisterClassLoader
in class ScopedClassPoolRepositoryImpl
classLoader
- the ClassLoader to be removed from this repository
|
JBoss ClassPool Parent POM 1.0.0.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |