org.jboss.aop.instrument
Class MethodByConJoinPointGenerator

java.lang.Object
  extended by org.jboss.aop.instrument.JoinPointGenerator
      extended by org.jboss.aop.instrument.MethodByConJoinPointGenerator

public class MethodByConJoinPointGenerator
extends JoinPointGenerator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.aop.instrument.JoinPointGenerator
JoinPointGenerator.AdviceSetup, JoinPointGenerator.JoinPointParameters
 
Field Summary
static String JOINPOINT_CLASS_PREFIX
           
static String JOINPOINT_FIELD_PREFIX
           
 
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, joinpointClassName, joinpointFieldName, TARGET_FIELD, THROWS_THROWABLE, TYPED_CALLER_FIELD, TYPED_TARGET_FIELD
 
Constructor Summary
MethodByConJoinPointGenerator(GeneratedClassAdvisor advisor, JoinPointInfo info)
           
 
Method Summary
protected static javassist.CtClass createJoinpointBaseClass(GeneratedAdvisorInstrumentor instrumentor, int callingIndex, javassist.CtClass callingClass, javassist.CtMethod targetMethod, String classname, long calledHash, String ciname)
           
protected  AdviceMethodProperties getAdviceMethodProperties(JoinPointBean joinPoint, JoinPointGenerator.AdviceSetup setup)
           
protected static String getGeneratedJoinPointClassName(int callingIndex, String classname, long calledHash)
           
protected static String getGeneratedJoinPointFieldName(int callingIndex, String classname, long calledHash)
           
protected  Class<?> getReturnClassType()
           
protected  boolean hasCallingObject()
           
protected  boolean hasTargetObject()
           
protected  void initialiseJoinPointNames(JoinPointInfo info)
           
protected  boolean isCaller()
           
protected  boolean isVoid()
           
 
Methods inherited from class org.jboss.aop.instrument.JoinPointGenerator
addUntransformableInterface, addUntransformableInterface, generateJoinPointClass, generateJoinPointClass, getJoinPointArg, getJoinpointField, getMethodString, overrideDispatchMethods, overrideDispatchMethods, rebindJoinpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JOINPOINT_CLASS_PREFIX

public static final String JOINPOINT_CLASS_PREFIX
See Also:
Constant Field Values

JOINPOINT_FIELD_PREFIX

public static final String JOINPOINT_FIELD_PREFIX
See Also:
Constant Field Values
Constructor Detail

MethodByConJoinPointGenerator

public MethodByConJoinPointGenerator(GeneratedClassAdvisor advisor,
                                     JoinPointInfo info)
Method Detail

initialiseJoinPointNames

protected void initialiseJoinPointNames(JoinPointInfo info)
Specified by:
initialiseJoinPointNames in class JoinPointGenerator

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

isCaller

protected boolean isCaller()
Overrides:
isCaller in class JoinPointGenerator

hasCallingObject

protected boolean hasCallingObject()
Overrides:
hasCallingObject in class JoinPointGenerator

hasTargetObject

protected boolean hasTargetObject()
Specified by:
hasTargetObject in class JoinPointGenerator

createJoinpointBaseClass

protected static javassist.CtClass createJoinpointBaseClass(GeneratedAdvisorInstrumentor instrumentor,
                                                            int callingIndex,
                                                            javassist.CtClass callingClass,
                                                            javassist.CtMethod targetMethod,
                                                            String classname,
                                                            long calledHash,
                                                            String ciname)
                                                     throws javassist.NotFoundException,
                                                            javassist.CannotCompileException
Throws:
javassist.NotFoundException
javassist.CannotCompileException

getGeneratedJoinPointClassName

protected static String getGeneratedJoinPointClassName(int callingIndex,
                                                       String classname,
                                                       long calledHash)

getGeneratedJoinPointFieldName

protected static String getGeneratedJoinPointFieldName(int callingIndex,
                                                       String classname,
                                                       long calledHash)


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.