org.jboss.aop.classpool
Class AOPClassPool

java.lang.Object
  extended by javassist.ClassPool
      extended by javassist.scopedpool.ScopedClassPool
          extended by org.jboss.aop.classpool.AOPClassPool
Direct Known Subclasses:
StandaloneClassPool

public class AOPClassPool
extends javassist.scopedpool.ScopedClassPool

Version:
$Revision: 79579 $
Author:
Bill Burke

Field Summary
protected  ConcurrentHashMap<String,String> generatedClasses
          Classnames of classes that will be created - we do not want to look for these in other pools
protected  ConcurrentHashMap<String,Boolean> loadedButNotWovenClasses
          Classnames of classes that have been loaded, but were not woven
protected  ConcurrentHashMap<String,Boolean> localResources
           
 
Fields inherited from class javassist.scopedpool.ScopedClassPool
classLoader, classPath, repository, softcache
 
Fields inherited from class javassist.ClassPool
childFirstLookup, classes, doPruning, parent, releaseUnmodifiedClassFile, source
 
Constructor Summary
  AOPClassPool(ClassLoader cl, javassist.ClassPool src, javassist.scopedpool.ScopedClassPoolRepository repository)
           
protected AOPClassPool(javassist.ClassPool src, javassist.scopedpool.ScopedClassPoolRepository repository)
           
 
Method Summary
 void close()
           
static AOPClassPool createAOPClassPool(ClassLoader cl, javassist.ClassPool src, javassist.scopedpool.ScopedClassPoolRepository repository)
           
static AOPClassPool createAOPClassPool(javassist.ClassPool src, javassist.scopedpool.ScopedClassPoolRepository repository)
           
 javassist.CtClass getCached(String classname)
           
 javassist.CtClass getLocally(String classname)
           
protected  String getResourceName(String classname)
           
protected  boolean includeInGlobalSearch()
           
 javassist.CtClass internalGet0(String classname, boolean useCache)
           
 boolean isClassLoadedButNotWoven(String classname)
           
 boolean isLocalClassLoaderResource(String classResourceName)
           
protected  boolean isLocalResource(String resourceName)
           
 void registerGeneratedClass(String className)
           
 void setClassLoadedButNotWoven(String classname)
           
 void setClassLoader(ClassLoader cl)
           
 String toString()
           
 
Methods inherited from class javassist.scopedpool.ScopedClassPool
cacheCtClass, flushClass, getCachedLocally, getClassLoader, getClassLoader0, isUnloadedClassLoader, lockInCache, soften, toClass
 
Methods inherited from class javassist.ClassPool
appendClassPath, appendClassPath, appendPathList, appendSystemPath, clearImportedPackages, createCtClass, find, get, get, get0, getAndRename, getCtClass, getDefault, getImportedPackages, getMethod, importPackage, insertClassPath, insertClassPath, lookupCflow, makeClass, makeClass, makeClass, makeClass, makeClassIfNew, makeInterface, makeInterface, recordInvalidClassName, removeCached, removeClassPath, toClass, toClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

generatedClasses

protected ConcurrentHashMap<String,String> generatedClasses
Classnames of classes that will be created - we do not want to look for these in other pools


localResources

protected ConcurrentHashMap<String,Boolean> localResources

loadedButNotWovenClasses

protected ConcurrentHashMap<String,Boolean> loadedButNotWovenClasses
Classnames of classes that have been loaded, but were not woven

Constructor Detail

AOPClassPool

public AOPClassPool(ClassLoader cl,
                    javassist.ClassPool src,
                    javassist.scopedpool.ScopedClassPoolRepository repository)

AOPClassPool

protected AOPClassPool(javassist.ClassPool src,
                       javassist.scopedpool.ScopedClassPoolRepository repository)
Method Detail

setClassLoader

public void setClassLoader(ClassLoader cl)

registerGeneratedClass

public void registerGeneratedClass(String className)

close

public void close()
Overrides:
close in class javassist.scopedpool.ScopedClassPool

getCached

public javassist.CtClass getCached(String classname)
Overrides:
getCached in class javassist.scopedpool.ScopedClassPool

includeInGlobalSearch

protected boolean includeInGlobalSearch()

getResourceName

protected String getResourceName(String classname)

isLocalResource

protected boolean isLocalResource(String resourceName)

isLocalClassLoaderResource

public boolean isLocalClassLoaderResource(String classResourceName)

getLocally

public javassist.CtClass getLocally(String classname)
                             throws javassist.NotFoundException
Overrides:
getLocally in class javassist.scopedpool.ScopedClassPool
Throws:
javassist.NotFoundException

setClassLoadedButNotWoven

public void setClassLoadedButNotWoven(String classname)

isClassLoadedButNotWoven

public boolean isClassLoadedButNotWoven(String classname)

createAOPClassPool

public static AOPClassPool createAOPClassPool(ClassLoader cl,
                                              javassist.ClassPool src,
                                              javassist.scopedpool.ScopedClassPoolRepository repository)

createAOPClassPool

public static AOPClassPool createAOPClassPool(javassist.ClassPool src,
                                              javassist.scopedpool.ScopedClassPoolRepository repository)

toString

public String toString()
Overrides:
toString in class javassist.ClassPool

internalGet0

public javassist.CtClass internalGet0(String classname,
                                      boolean useCache)
                               throws javassist.NotFoundException
Throws:
javassist.NotFoundException


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