org.codehaus.aspectwerkz.transform.delegation
Class DelegationWeavingStrategy

java.lang.Object
  extended byorg.codehaus.aspectwerkz.transform.delegation.DelegationWeavingStrategy
All Implemented Interfaces:
WeavingStrategy

public class DelegationWeavingStrategy
extends Object
implements WeavingStrategy

A weaving strategy implementing a weaving scheme based on delegation.

Author:
Jonas Bonér , Alexandre Vasseur

Field Summary
 
Fields inherited from interface org.codehaus.aspectwerkz.transform.WeavingStrategy
DELEGATION, INLINING
 
Constructor Summary
DelegationWeavingStrategy()
           
 
Method Summary
 void initialize(Hashtable params)
          Initializes the transformer stack.
 Context newContext(String name, byte[] bytecode, ClassLoader loader)
          Creates a new transformation context.
 void transform(String className, Context context)
          Transforms the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegationWeavingStrategy

public DelegationWeavingStrategy()
Method Detail

initialize

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

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

transform

public void transform(String className,
                      Context context)
Transforms the class.

Specified by:
transform in interface WeavingStrategy
Parameters:
className -
context -
Returns:

newContext

public Context newContext(String name,
                          byte[] bytecode,
                          ClassLoader loader)
Creates a new transformation context.

Specified by:
newContext in interface WeavingStrategy
Parameters:
name -
bytecode -
loader -
Returns:


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.