org.codehaus.aspectwerkz.transform.delegation
Class MethodExecutionTransformer
java.lang.Object
org.codehaus.aspectwerkz.transform.delegation.MethodExecutionTransformer
- All Implemented Interfaces:
- Transformer
- public class MethodExecutionTransformer
- extends Object
- implements Transformer
Advises method EXECUTION join points.
- Author:
- Jonas Bonér , Alexandre Vasseur
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodExecutionTransformer
public MethodExecutionTransformer()
transform
public void transform(Context context,
Klass klass)
throws Exception
- Makes the member method transformations.
- Specified by:
transform
in interface Transformer
- Parameters:
context
- the transformation contextklass
- the class set.
- Throws:
Exception
classFilter
public static boolean classFilter(SystemDefinition definition,
ExpressionContext ctx,
javassist.CtClass cg)
- Filters the classes to be transformed. TODO: when a class had execution pointcut that were removed it must be
unweaved, thus not filtered out How to handle that ? cache lookup ? or custom class level attribute ?
- Parameters:
definition
- the definitionctx
- the contextcg
- the class to filter
- Returns:
- boolean true if the method should be filtered away
methodFilter
public static int methodFilter(List definitions,
ExpressionContext ctx,
javassist.CtMethod method)
- Filters the methods to be transformed.
- Parameters:
definitions
- ctx
- method
-
- Returns:
Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.