|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor
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.-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.
| Field Summary | |
static boolean |
DETAILS
|
static boolean |
VERBOSE
|
| Constructor Summary | |
AspectWerkzPreProcessor()
|
|
| Method Summary | |
byte[] |
_preProcess(String name,
byte[] bytecode,
ClassLoader loader)
|
static void |
dumpAfter(String className,
Context context)
Dumps class after weaving. |
static void |
dumpBefore(String className,
Context context)
Dumps class before weaving. |
static void |
dumpForce(Context context)
Always dumps class. |
Collection |
getClassCacheTuples()
Returns the caching tuples. |
void |
initialize(Hashtable params)
Initializes the transformer stack. |
static void |
log(String msg)
Logs a message. |
byte[] |
preProcess(String name,
byte[] bytecode,
ClassLoader loader)
Transform bytecode according to the transformer stack |
byte[] |
preProcessActivate(Class klazz)
Runtime weaving of given Class according to the actual definition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean VERBOSE
public static final boolean DETAILS
| Constructor Detail |
public AspectWerkzPreProcessor()
| Method Detail |
public void initialize(Hashtable params)
initialize in interface ClassPreProcessorparams - not used
public byte[] preProcess(String name,
byte[] bytecode,
ClassLoader loader)
preProcess in interface ClassPreProcessorname - class namebytecode - bytecode to transformloader - classloader loading the class
public byte[] _preProcess(String name,
byte[] bytecode,
ClassLoader loader)
public byte[] preProcessActivate(Class klazz)
throws Throwable
preProcessActivate in interface RuntimeClassProcessorklazz -
Throwablepublic static void log(String msg)
msg - the message to log
public static void dumpBefore(String className,
Context context)
className - context -
public static void dumpAfter(String className,
Context context)
className - context - public static void dumpForce(Context context)
context - public Collection getClassCacheTuples()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||