org.jboss.aop.classpool
Class AOPClassPoolRepository

java.lang.Object
  extended by org.jboss.aop.classpool.AOPClassPoolRepository
All Implemented Interfaces:
javassist.scopedpool.ScopedClassPoolRepository

public class AOPClassPoolRepository
extends Object
implements javassist.scopedpool.ScopedClassPoolRepository

Singleton classpool repository used by aop

Version:
$Revision: 79719 $
Author:
Kabir Khan

Field Summary
protected  HashMap<ClassLoader,HashSet<Class<?>>> ucl2classes
          The classes per classppol
 
Method Summary
 void clearUnregisteredClassLoaders()
          This method will check to see if a register classloader has been undeployed (as in JBoss)
 javassist.scopedpool.ScopedClassPool createScopedClassPool(ClassLoader cl, javassist.ClassPool src)
           
 javassist.ClassPool findClassPool(ClassLoader cl)
           
 javassist.scopedpool.ScopedClassPoolFactory getClassPoolFactory()
           
static AOPClassPoolRepository getInstance()
           
 Map<ClassLoader,javassist.ClassPool> getRegisteredCLs()
          Get the registered classloaders
 boolean isPrune()
           
 void perfomUnregisterClassLoader(ClassLoader cl)
           
 void registerClass(Class<?> clazz)
           
 javassist.ClassPool registerClassLoader(ClassLoader ucl)
           
 void setAspectManager(AspectManager manager)
           
 void setClassPoolFactory(javassist.scopedpool.ScopedClassPoolFactory factory)
           
 void setPrune(boolean prune)
           
 void unregisterClassLoader(ClassLoader cl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ucl2classes

protected final HashMap<ClassLoader,HashSet<Class<?>>> ucl2classes
The classes per classppol

Method Detail

getInstance

public static AOPClassPoolRepository getInstance()

setClassPoolFactory

public void setClassPoolFactory(javassist.scopedpool.ScopedClassPoolFactory factory)
Specified by:
setClassPoolFactory in interface javassist.scopedpool.ScopedClassPoolRepository

getClassPoolFactory

public javassist.scopedpool.ScopedClassPoolFactory getClassPoolFactory()
Specified by:
getClassPoolFactory in interface javassist.scopedpool.ScopedClassPoolRepository

isPrune

public boolean isPrune()
Specified by:
isPrune in interface javassist.scopedpool.ScopedClassPoolRepository

setPrune

public void setPrune(boolean prune)
Specified by:
setPrune in interface javassist.scopedpool.ScopedClassPoolRepository

createScopedClassPool

public javassist.scopedpool.ScopedClassPool createScopedClassPool(ClassLoader cl,
                                                                  javassist.ClassPool src)
Specified by:
createScopedClassPool in interface javassist.scopedpool.ScopedClassPoolRepository

findClassPool

public javassist.ClassPool findClassPool(ClassLoader cl)
Specified by:
findClassPool in interface javassist.scopedpool.ScopedClassPoolRepository

setAspectManager

public void setAspectManager(AspectManager manager)

getRegisteredCLs

public Map<ClassLoader,javassist.ClassPool> getRegisteredCLs()
Get the registered classloaders

Specified by:
getRegisteredCLs in interface javassist.scopedpool.ScopedClassPoolRepository
Returns:
the registered classloaders

clearUnregisteredClassLoaders

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

Specified by:
clearUnregisteredClassLoaders in interface javassist.scopedpool.ScopedClassPoolRepository

registerClassLoader

public javassist.ClassPool registerClassLoader(ClassLoader ucl)
Specified by:
registerClassLoader in interface javassist.scopedpool.ScopedClassPoolRepository

unregisterClassLoader

public void unregisterClassLoader(ClassLoader cl)
Specified by:
unregisterClassLoader in interface javassist.scopedpool.ScopedClassPoolRepository

registerClass

public void registerClass(Class<?> clazz)

perfomUnregisterClassLoader

public void perfomUnregisterClassLoader(ClassLoader cl)


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.