org.codehaus.aspectwerkz.transform
Class AspectWerkzPreProcessor

java.lang.Object
  extended byorg.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor
All Implemented Interfaces:
ClassPreProcessor

public class AspectWerkzPreProcessor
extends java.lang.Object
implements ClassPreProcessor

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:

Author:
Alexandre Vasseur, Jonas Bonér

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

AspectWerkzPreProcessor

public AspectWerkzPreProcessor()
Method Detail

initialize

public void initialize(java.util.Hashtable params)
Initializes the transformer stack.

Specified by:
initialize in interface ClassPreProcessor
Parameters:
params - not used

preProcess

public byte[] preProcess(java.lang.String className,
                         byte[] bytecode,
                         java.lang.ClassLoader loader)
Transform bytecode going thru the interface transformation first.

Specified by:
preProcess in interface ClassPreProcessor
Parameters:
className - class name
bytecode - bytecode to transform
loader - classloader loading the class
Returns:
modified (or not) bytecode

log

public static void log(java.lang.String msg)
Logs a message.

Parameters:
msg - the message to log


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.