| java.lang.Object com.tc.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
com.tc.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 | |
DETAILS | final public static boolean DETAILS(Code) | | |
DUMP_AFTER | final public static boolean DUMP_AFTER(Code) | | |
DUMP_BEFORE | final public static boolean DUMP_BEFORE(Code) | | |
DUMP_DIR_AFTER | final public static String DUMP_DIR_AFTER(Code) | | |
DUMP_DIR_BEFORE | final public static String DUMP_DIR_BEFORE(Code) | | |
GENJP | final public static boolean GENJP(Code) | | |
VERBOSE | final public static boolean VERBOSE(Code) | | |
_preProcess | public InstrumentationContext _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 |
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 - |
|
|