|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.aop.instrument.JoinPointGenerator
public abstract class JoinPointGenerator
Creates the Joinpoint invocation replacement classes used with Generated advisors
Nested Class Summary | |
---|---|
protected class |
JoinPointGenerator.AdviceSetup
|
protected static class |
JoinPointGenerator.JoinPointParameters
|
Field Summary | |
---|---|
protected static String |
ARGUMENTS
|
protected static String |
CALLER_FIELD
|
static String |
DISPATCH
|
protected static javassist.CtClass[] |
EMPTY_CTCLASS_ARRAY
|
static String |
GENERATE_JOINPOINT_CLASS
|
protected static String |
GENERATED_CLASS_ADVISOR
|
static String |
INFO_FIELD
|
static String |
INITIALISE_LIGHTWEIGHT_INSTANCE_ASPECTS
|
static String |
INITIALISED_LIGHTWEIGHT_INSTANCE_ASPECTS
|
static String |
INVOKE_JOINPOINT
|
static String |
INVOKE_TARGET
|
static String |
IS_FOR_INSTANCE_ADVISOR
|
static String |
JOINPOINT_CLASS_PREFIX
|
static String |
JOINPOINT_FIELD_PREFIX
|
protected String |
joinpointClassName
|
protected String |
joinpointFieldName
|
protected static String |
TARGET_FIELD
|
protected static javassist.CtClass[] |
THROWS_THROWABLE
|
protected static String |
TYPED_CALLER_FIELD
|
protected static String |
TYPED_TARGET_FIELD
|
Constructor Summary | |
---|---|
protected |
JoinPointGenerator(GeneratedClassAdvisor advisor,
JoinPointInfo info,
JoinPointGenerator.JoinPointParameters parameters,
int argumentsSize,
boolean nullArgsArray)
Constructor. |
Method Summary | |
---|---|
protected static void |
addUntransformableInterface(javassist.ClassPool pool,
javassist.CtClass clazz)
|
protected static void |
addUntransformableInterface(Instrumentor instrumentor,
javassist.CtClass clazz)
|
void |
generateJoinPointClass()
Called by the joinpoint if a interceptors were regenereated Here for backwards compatiblity with AOP 1.5.0 |
Object |
generateJoinPointClass(ClassLoader classloader,
JoinPointInfo info)
Called by the joinpoint if a interceptors were regenereated |
protected abstract AdviceMethodProperties |
getAdviceMethodProperties(JoinPointBean info,
JoinPointGenerator.AdviceSetup setup)
|
protected String |
getJoinPointArg(int index)
This method returns the code that access the joinpoint arg number index (for invocations). |
protected Field |
getJoinpointField()
|
protected static String |
getMethodString(javassist.CtClass joinpoint,
String method,
javassist.CtClass[] params)
|
protected abstract Class<?> |
getReturnClassType()
|
protected boolean |
hasCallingObject()
|
protected abstract boolean |
hasTargetObject()
|
protected abstract void |
initialiseJoinPointNames(JoinPointInfo info)
|
protected boolean |
isCaller()
|
protected abstract boolean |
isVoid()
|
protected void |
overrideDispatchMethods(javassist.CtClass superClass,
javassist.CtClass clazz,
CallerConstructorInfo cinfo)
For ConByXXXX, If target constructor is execution advised, replace it with a call to the constructor wrapper |
protected void |
overrideDispatchMethods(javassist.CtClass superClass,
javassist.CtClass clazz,
JoinPointInfo newInfo)
Normal people don't want to override the dispatch method |
void |
rebindJoinpoint(JoinPointInfo newInfo)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INFO_FIELD
public static final String INITIALISED_LIGHTWEIGHT_INSTANCE_ASPECTS
public static final String INITIALISE_LIGHTWEIGHT_INSTANCE_ASPECTS
public static final String IS_FOR_INSTANCE_ADVISOR
public static final String INVOKE_JOINPOINT
public static final String INVOKE_TARGET
public static final String DISPATCH
protected static final String TARGET_FIELD
protected static final String TYPED_TARGET_FIELD
protected static final String CALLER_FIELD
protected static final String TYPED_CALLER_FIELD
protected static final String GENERATED_CLASS_ADVISOR
public static final String GENERATE_JOINPOINT_CLASS
public static final String JOINPOINT_FIELD_PREFIX
public static final String JOINPOINT_CLASS_PREFIX
protected static final String ARGUMENTS
protected static final javassist.CtClass[] EMPTY_CTCLASS_ARRAY
protected static final javassist.CtClass[] THROWS_THROWABLE
protected String joinpointClassName
protected String joinpointFieldName
Constructor Detail |
---|
protected JoinPointGenerator(GeneratedClassAdvisor advisor, JoinPointInfo info, JoinPointGenerator.JoinPointParameters parameters, int argumentsSize, boolean nullArgsArray)
advisor
- the advisor associated to this generatorinfo
- information regarding the joinpoint to be interceptedparameters
- indicates the parameters available to the interception
of this joinpointargumentsSize
- number of joinpoint argumentsnullArgsArray
- true
to indicate that the arguments array
should be null when there is not argument availableMethod Detail |
---|
public void rebindJoinpoint(JoinPointInfo newInfo)
public void generateJoinPointClass()
public Object generateJoinPointClass(ClassLoader classloader, JoinPointInfo info)
protected String getJoinPointArg(int index)
index
(for invocations).
index
- the index of the desired arg fieldprotected abstract void initialiseJoinPointNames(JoinPointInfo info)
protected abstract boolean isVoid()
protected abstract Class<?> getReturnClassType()
protected abstract AdviceMethodProperties getAdviceMethodProperties(JoinPointBean info, JoinPointGenerator.AdviceSetup setup)
protected boolean isCaller()
protected boolean hasCallingObject()
protected abstract boolean hasTargetObject()
protected void overrideDispatchMethods(javassist.CtClass superClass, javassist.CtClass clazz, JoinPointInfo newInfo) throws javassist.CannotCompileException, javassist.NotFoundException
javassist.CannotCompileException
javassist.NotFoundException
protected void overrideDispatchMethods(javassist.CtClass superClass, javassist.CtClass clazz, CallerConstructorInfo cinfo) throws javassist.NotFoundException, javassist.CannotCompileException
javassist.NotFoundException
javassist.CannotCompileException
protected static void addUntransformableInterface(Instrumentor instrumentor, javassist.CtClass clazz) throws javassist.NotFoundException
javassist.NotFoundException
protected static void addUntransformableInterface(javassist.ClassPool pool, javassist.CtClass clazz) throws javassist.NotFoundException
javassist.NotFoundException
protected static String getMethodString(javassist.CtClass joinpoint, String method, javassist.CtClass[] params)
protected Field getJoinpointField()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |