org.codehaus.aspectwerkz.xmldef.introduction
Interface IntroductionContainer

All Known Implementing Classes:
DefaultIntroductionContainerStrategy

public interface IntroductionContainer

Interface for the introduction container implementations.

Author:
Jonas Bonér

Method Summary
 ContainerType getContainerType()
          Returns the container type.
 java.lang.reflect.Method getMethod(int index)
          Returns a specific method by the method index.
 java.lang.reflect.Method[] getMethods()
          Returns all the methods for this introduction.
 java.lang.Object invokePerClass(java.lang.Object callingObject, int methodIndex, java.lang.Object[] parameters)
          Invokes the method on a per class basis.
 java.lang.Object invokePerInstance(java.lang.Object callingObject, int methodIndex, java.lang.Object[] parameters)
          Invokes the method on a per instance basis.
 java.lang.Object invokePerJvm(int methodIndex, java.lang.Object[] parameters)
          Invokes the method on a per JVM basis.
 java.lang.Object invokePerThread(int methodIndex, java.lang.Object[] parameters)
          Invokes the method on a per thread basis.
 void swapImplementation(java.lang.Class implClass)
          Swaps the current introduction implementation.
 

Method Detail

invokePerJvm

public java.lang.Object invokePerJvm(int methodIndex,
                                     java.lang.Object[] parameters)
Invokes the method on a per JVM basis.

Parameters:
methodIndex - the method index
parameters - the parameters for the invocation
Returns:
the result from the method invocation

invokePerClass

public java.lang.Object invokePerClass(java.lang.Object callingObject,
                                       int methodIndex,
                                       java.lang.Object[] parameters)
Invokes the method on a per class basis.

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

invokePerInstance

public java.lang.Object invokePerInstance(java.lang.Object callingObject,
                                          int methodIndex,
                                          java.lang.Object[] parameters)
Invokes the method on a per instance basis.

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

invokePerThread

public java.lang.Object invokePerThread(int methodIndex,
                                        java.lang.Object[] parameters)
Invokes the method on a per thread basis.

Parameters:
methodIndex - the method index
parameters - the parameters for the invocation
Returns:
the result from the method invocation

getMethod

public java.lang.reflect.Method getMethod(int index)
Returns a specific method by the method index.

Parameters:
index - the method index
Returns:
the method

getMethods

public java.lang.reflect.Method[] getMethods()
Returns all the methods for this introduction.

Returns:
the methods

swapImplementation

public void swapImplementation(java.lang.Class implClass)
Swaps the current introduction implementation.

Parameters:
implClass - the class of the new implementation to use

getContainerType

public ContainerType getContainerType()
Returns the container type.

Returns:
the container type


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