org.apache.hivemind.service.impl
Class HiveMindClassPool

java.lang.Object
  extended by javassist.ClassPool
      extended by org.apache.hivemind.service.impl.HiveMindClassPool

public class HiveMindClassPool
extends javassist.ClassPool

Used to ensure that ClassPool.appendClassPath(javassist.ClassPath) is invoked with a synchronized lock. Additionally, wraps around a shared ClassFactoryClassLoader.

Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class javassist.ClassPool
childFirstLookup, classes, doPruning, parent, releaseUnmodifiedClassFile, source
 
Constructor Summary
HiveMindClassPool()
           
 
Method Summary
 void appendClassLoader(java.lang.ClassLoader loader)
          Convienience method for adding to the ClassPath for a particular class loader.
 java.lang.Class toClass(javassist.CtClass ctClass)
          Invoked to convert an fabricated class into a real class.
 
Methods inherited from class javassist.ClassPool
appendClassPath, appendClassPath, appendPathList, appendSystemPath, cacheCtClass, clearImportedPackages, createCtClass, find, get, get, get0, getAndRename, getCached, getClassLoader, getDefault, getImportedPackages, getMethod, importPackage, insertClassPath, insertClassPath, lookupCflow, makeClass, makeClass, makeClass, makeInterface, makeInterface, recordInvalidClassName, removeCached, removeClassPath, toClass, toClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HiveMindClassPool

public HiveMindClassPool()
Method Detail

appendClassLoader

public void appendClassLoader(java.lang.ClassLoader loader)
Convienience method for adding to the ClassPath for a particular class loader.


toClass

public java.lang.Class toClass(javassist.CtClass ctClass)
                        throws javassist.CannotCompileException
Invoked to convert an fabricated class into a real class. The new classes' class loader will be the delegating ClassFactoryClassLoader, which has visibility to all class loaders for all modules.

Overrides:
toClass in class javassist.ClassPool
Throws:
javassist.CannotCompileException
Since:
1.1


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.