|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.introduction.DefaultIntroductionContainerStrategy
Implements the default introduction container strategy.
Constructor Summary | |
DefaultIntroductionContainerStrategy(java.lang.Class implClass)
Creates a new default introduction container. |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultIntroductionContainerStrategy(java.lang.Class implClass)
implClass
- the implementation classMethod Detail |
public java.lang.Object invokePerJvm(int methodIndex, java.lang.Object[] parameters)
invokePerJvm
in interface IntroductionContainer
methodIndex
- the method indexparameters
- the parameters for the invocation
public java.lang.Object invokePerClass(java.lang.Object callingObject, int methodIndex, java.lang.Object[] parameters)
invokePerClass
in interface IntroductionContainer
callingObject
- a reference to the calling objectmethodIndex
- the method indexparameters
- the parameters for the invocation
public java.lang.Object invokePerInstance(java.lang.Object callingObject, int methodIndex, java.lang.Object[] parameters)
invokePerInstance
in interface IntroductionContainer
callingObject
- a reference to the calling objectmethodIndex
- the method indexparameters
- the parameters for the invocation
public java.lang.Object invokePerThread(int methodIndex, java.lang.Object[] parameters)
invokePerThread
in interface IntroductionContainer
methodIndex
- the method indexparameters
- the parameters for the invocation
public void swapImplementation(java.lang.Class implClass)
swapImplementation
in interface IntroductionContainer
implClass
- the class of the new implementation to usepublic ContainerType getContainerType()
getContainerType
in interface IntroductionContainer
public java.lang.reflect.Method getMethod(int index)
getMethod
in interface IntroductionContainer
index
- the method index
public java.lang.reflect.Method[] getMethods()
getMethods
in interface IntroductionContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |