|
||||||||||
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 poinbt of the AspectWerkz layer 2
It implements the ClassPreProcessor interface defined in layer 1.
Issued from JMangler, the transformer stack is hardcoded here - need refactoring.
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 (jexl, trove, dom4j...). 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.
Constructor Summary | |
AspectWerkzPreProcessor()
|
Method Summary | |
void |
initialize(java.util.Hashtable params)
Initializes the transformer stack. |
static void |
log(java.lang.String msg)
Logs a message. |
byte[] |
preProcess(java.lang.String className,
byte[] bytecode,
java.lang.ClassLoader loader)
Transform bytecode going thru the interface transformation first. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AspectWerkzPreProcessor()
Method Detail |
public void initialize(java.util.Hashtable params)
initialize
in interface ClassPreProcessor
params
- not usedpublic byte[] preProcess(java.lang.String className, byte[] bytecode, java.lang.ClassLoader loader)
preProcess
in interface ClassPreProcessor
className
- class namebytecode
- bytecode to transformloader
- classloader loading the class
public static void log(java.lang.String msg)
msg
- the message to log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |