| java.lang.Object org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor
AspectWerkzPreProcessor | public class AspectWerkzPreProcessor implements ClassPreProcessor(Code) | | AspectWerkzPreProcessor is the entry point of the AspectWerkz layer 2. It implements the ClassPreProcessor
interface defined in layer 1. Available options are:
-Daspectwerkz.transform.verbose=yes turns on verbose mode: print on stdout all non filtered class
names and which transformation are applied
-Daspectwerkz.transform.dump=org.myapp.* dumps transformed class matching pattern org.myapp.*
(even unmodified ones) in ./_dump directory (relative to where applications starts). The syntax
-Daspectwerkz.transform.dump=* matchs all classes. The pattern language is the same as pointcut
pattern language.
- else
-Daspectwerkz.transform.dump=org.myapp.*,before dumps class before and after the
transformation whose name starts with org.myapp. (even unmodified ones) in ./_dump/before and
./_dump/after directories (relative to where application starts)
-Daspectwerkz.transform.filter=no (or false) disables filtering of
org.codehaus.aspectwerkz and related classes (trove, dom4j etc.). This should only be used in offline
mode where weaving of those classes is needed. Setting this option in online mode will lead to
ClassCircularityError .
author: Alexandre Vasseur author: Jonas BonŽr |
Inner Class :public static class Output | |
Field Summary | |
final public static boolean | DETAILS | final public static boolean | GENJP | final public static boolean | VERBOSE |
DETAILS | final public static boolean DETAILS(Code) | | |
GENJP | final public static boolean GENJP(Code) | | |
VERBOSE | final public static boolean VERBOSE(Code) | | |
_preProcess | public Context _preProcess(String className, byte[] bytecode, ClassLoader loader)(Code) | | Weaving of the class
Parameters: className - Parameters: bytecode - Parameters: loader - the weaving context, where getCurrentBytecode is the resulting bytecode |
dumpAfter | public static void dumpAfter(String className, Context context)(Code) | | Dumps class after weaving.
Parameters: className - Parameters: context - |
dumpBefore | public static void dumpBefore(String className, Context context)(Code) | | Dumps class before weaving.
Parameters: className - Parameters: context - |
initialize | public void initialize()(Code) | | Initializes the transformer stack.
|
log | public static void log(String msg)(Code) | | Logs a message.
Parameters: msg - the message to log |
preProcess | public byte[] preProcess(String name, byte[] bytecode, ClassLoader loader)(Code) | | Transform bytecode according to the transformer stack
Adapted for embedded modes, that will filter out framework classes
See preProcessWithOutput for a tool entry point.
Parameters: name - class name Parameters: bytecode - bytecode to transform Parameters: loader - classloader loading the class modified (or not) bytecode |
preProcessWithOutput | public Output preProcessWithOutput(String name, byte[] bytecode, ClassLoader loader)(Code) | | Weaving without filtering any class and returning a rich object with emitted joinpoints
Parameters: name - Parameters: bytecode - Parameters: loader - |
|
|