org.jboss.aop.instrument
Class FieldJoinPointGenerator
java.lang.Object
org.jboss.aop.instrument.JoinPointGenerator
org.jboss.aop.instrument.FieldJoinPointGenerator
public class FieldJoinPointGenerator
- extends JoinPointGenerator
- Version:
- $Revision$
- Author:
- Kabir Khan
Fields inherited from class org.jboss.aop.instrument.JoinPointGenerator |
ARGUMENTS, CALLER_FIELD, DISPATCH, EMPTY_CTCLASS_ARRAY, GENERATE_JOINPOINT_CLASS, GENERATED_CLASS_ADVISOR, INFO_FIELD, INITIALISE_LIGHTWEIGHT_INSTANCE_ASPECTS, INITIALISED_LIGHTWEIGHT_INSTANCE_ASPECTS, INVOKE_JOINPOINT, INVOKE_TARGET, IS_FOR_INSTANCE_ADVISOR, JOINPOINT_CLASS_PREFIX, JOINPOINT_FIELD_PREFIX, joinpointClassName, joinpointFieldName, TARGET_FIELD, THROWS_THROWABLE, TYPED_CALLER_FIELD, TYPED_TARGET_FIELD |
Method Summary |
protected static javassist.CtClass |
createReadJoinpointBaseClass(GeneratedAdvisorInstrumentor instrumentor,
javassist.CtClass advisedClass,
javassist.CtField advisedField,
String finame,
int index)
|
protected static javassist.CtClass |
createWriteJoinpointBaseClass(GeneratedAdvisorInstrumentor instrumentor,
javassist.CtClass advisedClass,
javassist.CtField advisedField,
String finame,
int index)
|
protected AdviceMethodProperties |
getAdviceMethodProperties(JoinPointBean joinPoint,
JoinPointGenerator.AdviceSetup setup)
|
protected static String |
getGeneratedJoinPointFieldName(String fieldName,
boolean read)
|
protected String |
getJoinPointArg(int index)
This method will be called only when an @Arg-annotated parameter is accepted. |
protected Class<?> |
getReturnClassType()
|
protected boolean |
hasTargetObject()
|
protected void |
initialiseJoinPointNames(JoinPointInfo info)
|
protected boolean |
isVoid()
|
Methods inherited from class org.jboss.aop.instrument.JoinPointGenerator |
addUntransformableInterface, addUntransformableInterface, generateJoinPointClass, generateJoinPointClass, getJoinpointField, getMethodString, hasCallingObject, isCaller, overrideDispatchMethods, overrideDispatchMethods, rebindJoinpoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WRITE_JOINPOINT_FIELD_PREFIX
public static final String WRITE_JOINPOINT_FIELD_PREFIX
- See Also:
- Constant Field Values
READ_JOINPOINT_FIELD_PREFIX
public static final String READ_JOINPOINT_FIELD_PREFIX
- See Also:
- Constant Field Values
WRITE_JOINPOINT_CLASS_PREFIX
public static final String WRITE_JOINPOINT_CLASS_PREFIX
- See Also:
- Constant Field Values
READ_JOINPOINT_CLASS_PREFIX
public static final String READ_JOINPOINT_CLASS_PREFIX
- See Also:
- Constant Field Values
FieldJoinPointGenerator
public FieldJoinPointGenerator(GeneratedClassAdvisor advisor,
JoinPointInfo info)
initialiseJoinPointNames
protected void initialiseJoinPointNames(JoinPointInfo info)
- Specified by:
initialiseJoinPointNames
in class JoinPointGenerator
getJoinPointArg
protected String getJoinPointArg(int index)
- This method will be called only when an @Arg-annotated parameter is accepted.
This happens only on FieldWrite interceptions, and index value will be zero.
- Overrides:
getJoinPointArg
in class JoinPointGenerator
- Parameters:
index
- zero value
isVoid
protected boolean isVoid()
- Specified by:
isVoid
in class JoinPointGenerator
getReturnClassType
protected Class<?> getReturnClassType()
- Specified by:
getReturnClassType
in class JoinPointGenerator
getAdviceMethodProperties
protected AdviceMethodProperties getAdviceMethodProperties(JoinPointBean joinPoint,
JoinPointGenerator.AdviceSetup setup)
- Specified by:
getAdviceMethodProperties
in class JoinPointGenerator
hasTargetObject
protected boolean hasTargetObject()
- Specified by:
hasTargetObject
in class JoinPointGenerator
getGeneratedJoinPointFieldName
protected static String getGeneratedJoinPointFieldName(String fieldName,
boolean read)
createReadJoinpointBaseClass
protected static javassist.CtClass createReadJoinpointBaseClass(GeneratedAdvisorInstrumentor instrumentor,
javassist.CtClass advisedClass,
javassist.CtField advisedField,
String finame,
int index)
throws javassist.NotFoundException,
javassist.CannotCompileException
- Throws:
javassist.NotFoundException
javassist.CannotCompileException
createWriteJoinpointBaseClass
protected static javassist.CtClass createWriteJoinpointBaseClass(GeneratedAdvisorInstrumentor instrumentor,
javassist.CtClass advisedClass,
javassist.CtField advisedField,
String finame,
int index)
throws javassist.NotFoundException,
javassist.CannotCompileException
- Throws:
javassist.NotFoundException
javassist.CannotCompileException
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.