org.codehaus.aspectwerkz.transform.delegation
Class PrepareTransformer
java.lang.Object
org.codehaus.aspectwerkz.transform.delegation.PrepareTransformer
- All Implemented Interfaces:
- Transformer
- public class PrepareTransformer
- extends Object
- implements Transformer
Prepare class for further hotswap for execution pointcut TODO support for constructor pointcuts TODO AOPC def model
- Author:
- Alexandre Vasseur
Method Summary |
static boolean |
classFilter(SystemDefinition definition,
javassist.CtClass cg)
Filters the classes to be transformed. |
static boolean |
methodFilter(javassist.CtMethod method)
Filters the methods to be transformed. |
void |
transform(Context context,
Klass klass)
Add the class static field, the joinpoint manager, and add method stubs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrepareTransformer
public PrepareTransformer()
transform
public void transform(Context context,
Klass klass)
throws javassist.NotFoundException,
javassist.CannotCompileException
- Add the class static field, the joinpoint manager, and add method stubs
- Specified by:
transform
in interface Transformer
- Parameters:
context
- the transformation contextklass
- the class set.
- Throws:
javassist.NotFoundException
javassist.CannotCompileException
classFilter
public static boolean classFilter(SystemDefinition definition,
javassist.CtClass cg)
- Filters the classes to be transformed. Takes only "prepare" declarations into account
- Parameters:
definition
- the definitioncg
- the class to filter
- Returns:
- boolean true if the method should be filtered away
methodFilter
public static boolean methodFilter(javassist.CtMethod method)
- Filters the methods to be transformed. Does not check execution pointcuts
- Parameters:
method
- the method to filter
- Returns:
- boolean
Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.