|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.aop.instrument.ConstructorExecutionTransformer
Comment
Constructor Summary | |
---|---|
ConstructorExecutionTransformer(Instrumentor instrumentor,
AspectManager manager)
|
Method Summary | |
---|---|
void |
buildConstructorWrappers(javassist.CtClass clazz,
ClassAdvisor advisor)
|
void |
codeConverted()
Notifies this transformer that the code conversion is done. |
static String |
constructorFactory(String className)
|
protected String |
createOptimizedInvocationClass(javassist.CtClass clazz,
javassist.CtConstructor con,
int index)
|
static boolean |
isAdvisableConstructor(javassist.CtConstructor con,
ClassAdvisor advisor)
|
boolean |
replaceConstructorAccess(ClassAdvisor sourceAdvisor,
javassist.CtClass source)
|
boolean |
transform(javassist.CtClass clazz,
ClassAdvisor classAdvisor)
Transforms the constructor executions of this class according to the pointcuts registered in AspectManager . |
void |
unwrap(javassist.CtClass clazz,
Collection constructorIndexes)
Unwraps the constructor executions contained in constructorIndexes . |
void |
wrap(javassist.CtClass clazz,
Collection constructorIndexes)
Wraps the constructor executions contained in constructorIndexes . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConstructorExecutionTransformer(Instrumentor instrumentor, AspectManager manager)
Method Detail |
public static String constructorFactory(String className)
public boolean transform(javassist.CtClass clazz, ClassAdvisor classAdvisor) throws Exception
AspectManager
.
clazz
- the clazz to be transformed.classAdvisor
- the advisor associated to clazz
.
true
is clazz
is instrumented.
Exception
public void wrap(javassist.CtClass clazz, Collection constructorIndexes) throws Exception
constructorIndexes
.
clazz
- the class being instrumented.constructorIndexes
- a collection of java.lang.Integer
indentifying
the constructors to be wrapped.
Exception
public void unwrap(javassist.CtClass clazz, Collection constructorIndexes) throws javassist.NotFoundException
constructorIndexes
.
clazz
- the class being instrumented.constructorIndexes
- a collection of java.lang.Integer
indentifying
the constructors to be unwrapped.
javassist.NotFoundException
public void codeConverted() throws javassist.CannotCompileException
codeConverted
in interface org.jboss.aop.instrument.CodeConversionObserver
javassist.CannotCompileException
public boolean replaceConstructorAccess(ClassAdvisor sourceAdvisor, javassist.CtClass source) throws javassist.NotFoundException
javassist.NotFoundException
public void buildConstructorWrappers(javassist.CtClass clazz, ClassAdvisor advisor) throws Exception
Exception
public static boolean isAdvisableConstructor(javassist.CtConstructor con, ClassAdvisor advisor) throws javassist.NotFoundException
javassist.NotFoundException
protected String createOptimizedInvocationClass(javassist.CtClass clazz, javassist.CtConstructor con, int index) throws Exception
Exception
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |