| java.lang.Object com.tc.aspectwerkz.transform.inlining.model.AopAllianceAspectModel
All known Subclasses: com.tc.aspectwerkz.transform.inlining.model.SpringAspectModel,
AopAllianceAspectModel | public class AopAllianceAspectModel implements AspectModel,TransformationConstants(Code) | | TODO support ConstructorInvocation (1h work) (plus tests)
Implementation of the AspectModel interface for AOP Alliance based frameworks (e.g. Spring, dynaop etc.).
Provides methods for definition of aspects and framework specific bytecode generation
used by the join point compiler.
author: Jonas Bonér |
Method Summary | |
public void | createAndStoreRuntimeAspectInstantiation(MethodVisitor methodVisitor, CompilerInput compilerInput, AspectInfo aspectInfo) | public void | createAndStoreStaticAspectInstantiation(ClassVisitor classVisitor, MethodVisitor methodVisitor, AspectInfo aspectInfo, String joinPointClassName) Creates host of the aop alliance aspect instance by invoking aspectOf(). | public void | createAroundAdviceArgumentHandling(MethodVisitor methodVisitor, CompilerInput compilerInput, Type[] types, AdviceMethodInfo adviceMethodInfo) | public void | createBeforeOrAfterAdviceArgumentHandling(MethodVisitor methodVisitor, CompilerInput compilerInput, Type[] types, AdviceMethodInfo adviceMethodInfo, int i) | public void | createInvocationOfAroundClosureSuperClass(MethodVisitor cv) Creates an invocation of the around closure class' constructor. | public void | createMandatoryMethods(ClassWriter cw, JoinPointCompiler compiler) Creates the methods required to implement or extend to implement the closure for the specific
aspect model type. | public void | defineAspect(ClassInfo classInfo, AspectDefinition aspectDef, ClassLoader loader) Defines the aspect. | public AroundClosureClassInfo | getAroundClosureClassInfo() Returns info about the closure class, name and type (interface or class). | public String | getAspectModelType() Returns the aspect model type, which is an id for the the special aspect model, can be anything as long
as it is unique. | public AspectModel | getInstance(CompilationInfo.Model compilationModel) Returns an instance for a given compilation. | public void | loadAspect(MethodVisitor methodVisitor, CompilerInput compilerInput, AspectInfo aspectInfo) | public boolean | requiresReflectiveInfo() AOP Alliance is a reflection based model and therefore in need of RTTI info: returns true. |
AOP_ALLIANCE_CLOSURE_CLASS_NAME | final protected static String AOP_ALLIANCE_CLOSURE_CLASS_NAME(Code) | | |
AOP_ALLIANCE_CLOSURE_PROCEED_METHOD_NAME | final protected static String AOP_ALLIANCE_CLOSURE_PROCEED_METHOD_NAME(Code) | | |
AOP_ALLIANCE_CLOSURE_PROCEED_METHOD_SIGNATURE | final protected static String AOP_ALLIANCE_CLOSURE_PROCEED_METHOD_SIGNATURE(Code) | | |
ASPECT_MODEL_TYPE | final protected static String ASPECT_MODEL_TYPE(Code) | | |
GET_ARGUMENTS_METHOD_NAME | final protected static String GET_ARGUMENTS_METHOD_NAME(Code) | | |
GET_ARGUMENTS_METHOD_SIGNATURE | final protected static String GET_ARGUMENTS_METHOD_SIGNATURE(Code) | | |
GET_METHOD_METHOD_NAME | final protected static String GET_METHOD_METHOD_NAME(Code) | | |
GET_METHOD_METHOD_SIGNATURE | final protected static String GET_METHOD_METHOD_SIGNATURE(Code) | | |
GET_PARAMETER_VALUES_METHOD_NAME | final protected static String GET_PARAMETER_VALUES_METHOD_NAME(Code) | | |
GET_STATIC_PART_METHOD_NAME | final protected static String GET_STATIC_PART_METHOD_NAME(Code) | | |
GET_STATIC_PART_METHOD_SIGNATURE | final protected static String GET_STATIC_PART_METHOD_SIGNATURE(Code) | | |
createAndStoreStaticAspectInstantiation | public void createAndStoreStaticAspectInstantiation(ClassVisitor classVisitor, MethodVisitor methodVisitor, AspectInfo aspectInfo, String joinPointClassName)(Code) | | Creates host of the aop alliance aspect instance by invoking aspectOf().
|
createInvocationOfAroundClosureSuperClass | public void createInvocationOfAroundClosureSuperClass(MethodVisitor cv)(Code) | | Creates an invocation of the around closure class' constructor.
|
createMandatoryMethods | public void createMandatoryMethods(ClassWriter cw, JoinPointCompiler compiler)(Code) | | Creates the methods required to implement or extend to implement the closure for the specific
aspect model type.
Parameters: cw - Parameters: compiler - |
getAroundClosureClassInfo | public AroundClosureClassInfo getAroundClosureClassInfo()(Code) | | Returns info about the closure class, name and type (interface or class).
the closure class info |
getAspectModelType | public String getAspectModelType()(Code) | | Returns the aspect model type, which is an id for the the special aspect model, can be anything as long
as it is unique.
the aspect model type id |
requiresReflectiveInfo | public boolean requiresReflectiveInfo()(Code) | | AOP Alliance is a reflection based model and therefore in need of RTTI info: returns true.
true |
|
|