org.codehaus.aspectwerkz
Interface Mixin

All Known Implementing Classes:
Introduction, Introduction

public interface Mixin

Interface for the mixin implementations.

Author:
Jonas Bonér

Method Summary
 int ___AW_getDeploymentModel()
          Returns the deployment model.
 java.lang.String ___AW_getImplementationClassName()
          Returns the implementation class name for the mixin.
 java.lang.String ___AW_getName()
          Returns the name of the mixin.
 java.lang.Object ___AW_invokeMixin(int methodIndex, java.lang.Object callingObject)
          Invokes the method with the index specified.
 java.lang.Object ___AW_invokeMixin(int methodIndex, java.lang.Object[] parameters, java.lang.Object callingObject)
          Invokes an introduced method with the index specified.
 void ___AW_swapImplementation(java.lang.String className)
          Swaps the current introduction implementation.
 

Method Detail

___AW_getName

public java.lang.String ___AW_getName()
Returns the name of the mixin.

Returns:
the name

___AW_getDeploymentModel

public int ___AW_getDeploymentModel()
Returns the deployment model.

Returns:
the deployment model

___AW_invokeMixin

public java.lang.Object ___AW_invokeMixin(int methodIndex,
                                          java.lang.Object callingObject)
Invokes the method with the index specified. Invoked by methods without any parameters (slight performance gain since we are saving us one array creation).

Parameters:
methodIndex - the method index
callingObject - a reference to the calling object
Returns:
the result from the invocation

___AW_invokeMixin

public java.lang.Object ___AW_invokeMixin(int methodIndex,
                                          java.lang.Object[] parameters,
                                          java.lang.Object callingObject)
Invokes an introduced method with the index specified.

Parameters:
methodIndex - the method index
parameters - the parameters for the invocation
callingObject - a reference to the calling object
Returns:
the result from the invocation

___AW_getImplementationClassName

public java.lang.String ___AW_getImplementationClassName()
Returns the implementation class name for the mixin.

Returns:
the implementation class name for the mixin

___AW_swapImplementation

public void ___AW_swapImplementation(java.lang.String className)
Swaps the current introduction implementation.

Parameters:
className - the class name of the new implementation


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