org.jboss.aop.instrument
Class MethodJoinPointGenerator

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

public class MethodJoinPointGenerator
extends JoinPointGenerator

Creates the Joinpoint invocation replacement classes used with Generated advisors

Version:
$Revision$
Author:
Kabir Khan

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.aop.instrument.JoinPointGenerator
JoinPointGenerator.AdviceSetup, JoinPointGenerator.JoinPointParameters
 
Field Summary
 
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
 
Constructor Summary
MethodJoinPointGenerator(GeneratedClassAdvisor advisor, MethodInfo info)
           
 
Method Summary
protected static javassist.CtClass createJoinpointBaseClass(GeneratedAdvisorInstrumentor instrumentor, javassist.CtClass advisedClass, javassist.CtMethod targetMethod, javassist.CtMethod wMethod, String miname, String originalMethodName, String wrappedMethodName, long hash)
           
protected  AdviceMethodProperties getAdviceMethodProperties(JoinPointBean joinPoint, JoinPointGenerator.AdviceSetup setup)
           
protected static String getGeneratedJoinPointFieldName(String methodName, long hash)
           
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, getJoinPointArg, 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
 

Constructor Detail

MethodJoinPointGenerator

public MethodJoinPointGenerator(GeneratedClassAdvisor advisor,
                                MethodInfo 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

hasTargetObject

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

createJoinpointBaseClass

protected static javassist.CtClass createJoinpointBaseClass(GeneratedAdvisorInstrumentor instrumentor,
                                                            javassist.CtClass advisedClass,
                                                            javassist.CtMethod targetMethod,
                                                            javassist.CtMethod wMethod,
                                                            String miname,
                                                            String originalMethodName,
                                                            String wrappedMethodName,
                                                            long hash)
                                                     throws javassist.CannotCompileException,
                                                            javassist.NotFoundException
Throws:
javassist.CannotCompileException
javassist.NotFoundException

getGeneratedJoinPointFieldName

protected static String getGeneratedJoinPointFieldName(String methodName,
                                                       long hash)


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