org.codehaus.aspectwerkz.transform
Interface WeavingStrategy

All Known Implementing Classes:
DelegationWeavingStrategy

public interface WeavingStrategy

Interface that all the weaving strategy implementations must implement.

Author:
Jonas Bonér

Field Summary
static int DELEGATION
          Defines the delegation weaving strategy.
static int INLINING
          Defines the inlining weaving strategy.
 
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)
           
 

Field Detail

INLINING

public static final int INLINING
Defines the inlining weaving strategy.

See Also:
Constant Field Values

DELEGATION

public static final int DELEGATION
Defines the delegation weaving strategy.

See Also:
Constant Field Values
Method Detail

initialize

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

Parameters:
params -

transform

public void transform(String className,
                      Context context)
Parameters:
className -
context -
Returns:

newContext

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

Parameters:
name -
bytecode -
loader -
Returns:


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