|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.weaver.transformation.ClassPoolFactory
public final class ClassPoolFactory
A factory for the ClassPool class from Javassist which makes it easy to throw away the old ones and create a new one. This functionality is needed due to the design of the ClassPool class which holds onto CtClass instances. The factory has the functionality to only throw away the cached values every 20 classes which may improve performance without consuming too much RAM.
Method Summary | |
---|---|
static void |
clearPool()
Clears the pool but only once this method has been called ITERATIONS_TO_KEEP times. |
static javassist.ClassPool |
createNewPool()
Creates a new ClassPool and returns the result. |
static javassist.ClassPool |
getPool()
Returns the current ClassPool if there is one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javassist.ClassPool getPool()
public static javassist.ClassPool createNewPool()
public static void clearPool()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |