org.jboss.aop.instrument
Class MethodJoinPointGenerator

java.lang.Object
  extended byorg.jboss.aop.instrument.JoinPointGenerator
      extended byorg.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 inherited from class org.jboss.aop.instrument.JoinPointGenerator
JoinPointGenerator.AdviceSetup
 
Field Summary
 
Fields inherited from class org.jboss.aop.instrument.JoinPointGenerator
advisor, DISPATCH, GENERATE_JOINPOINT_CLASS, GENERATED_CLASS_ADVISOR, GENERATOR_PREFIX, info, INFO_FIELD, INVOKE_JOINPOINT, JOINPOINT_CLASS_PREFIX, JOINPOINT_FIELD_PREFIX, joinpointClassName, joinpointFieldName, TARGET_FIELD
 
Constructor Summary
MethodJoinPointGenerator(GeneratedClassAdvisor advisor, MethodInfo info)
           
 
Method Summary
protected static javassist.CtClass createJoinpointBaseClass(GeneratedAdvisorInstrumentor instrumentor, javassist.CtClass advisedClass, javassist.CtMethod targetMethod, String miname, String originalMethodName, String wrappedMethodName, long hash)
           
protected  AdviceMethodProperties getAdviceMethodProperties(JoinPointGenerator.AdviceSetup setup)
           
protected static String getInfoFieldName(String methodName, long hash)
           
protected  String getInfoName()
           
protected  String getJoinPointGeneratorFieldName()
           
protected static String getJoinPointGeneratorFieldName(String methodName, long hash)
           
protected  Class getReturnType()
           
protected  boolean hasTargetObject()
           
protected  void initialiseJoinPointNames()
           
protected  boolean isVoid()
           
 
Methods inherited from class org.jboss.aop.instrument.JoinPointGenerator
addUntransformableInterface, addUntransformableInterface, appendAroundCallString, generateJoinPointClass, 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()
Specified by:
initialiseJoinPointNames in class JoinPointGenerator

isVoid

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

getReturnType

protected Class getReturnType()
Specified by:
getReturnType in class JoinPointGenerator

getAdviceMethodProperties

protected AdviceMethodProperties getAdviceMethodProperties(JoinPointGenerator.AdviceSetup setup)
Specified by:
getAdviceMethodProperties in class JoinPointGenerator

hasTargetObject

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

getInfoName

protected String getInfoName()

createJoinpointBaseClass

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

getJoinPointGeneratorFieldName

protected String getJoinPointGeneratorFieldName()
Specified by:
getJoinPointGeneratorFieldName in class JoinPointGenerator

getInfoFieldName

protected static String getInfoFieldName(String methodName,
                                         long hash)

getJoinPointGeneratorFieldName

protected static String getJoinPointGeneratorFieldName(String methodName,
                                                       long hash)


Copyright © 2004 JBoss Inc. All Rights Reserved.