|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.attribdef.aspect.DefaultIntroductionContainerStrategy
Container for Introductions.
| Constructor Summary | |
DefaultIntroductionContainerStrategy(Introduction prototype,
AspectContainer definingAspectContainer)
Creates a new container strategy. |
|
| Method Summary | |
java.lang.Class |
getTargetClass(java.lang.Object mixinImpl)
Returns the target class from an introduction |
java.lang.Object |
getTargetInstance(java.lang.Object mixinImpl)
Returns the target instance from an introduction |
java.lang.Object |
invokeIntroductionPerClass(java.lang.Object targetInstance,
int methodIndex,
java.lang.Object[] parameters)
Invokes the method on a per class basis. |
java.lang.Object |
invokeIntroductionPerInstance(java.lang.Object targetInstance,
int methodIndex,
java.lang.Object[] parameters)
Invokes the method on a per instance basis. |
java.lang.Object |
invokeIntroductionPerJvm(int methodIndex,
java.lang.Object[] parameters)
Invokes the method on a per JVM basis. |
java.lang.Object |
invokeIntroductionPerThread(int methodIndex,
java.lang.Object[] parameters)
Invokes the method on a per thread basis. |
void |
swapImplementation(java.lang.Class newImplementationClass)
Swaps the current mixin implementation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultIntroductionContainerStrategy(Introduction prototype,
AspectContainer definingAspectContainer)
prototype - the advice prototype| Method Detail |
public java.lang.Object invokeIntroductionPerJvm(int methodIndex,
java.lang.Object[] parameters)
invokeIntroductionPerJvm in interface IntroductionContainermethodIndex - the method indexparameters - the parameters for the invocation
public java.lang.Object invokeIntroductionPerClass(java.lang.Object targetInstance,
int methodIndex,
java.lang.Object[] parameters)
invokeIntroductionPerClass in interface IntroductionContainertargetInstance - a reference to the calling objectmethodIndex - the method indexparameters - the parameters for the invocation
public java.lang.Object invokeIntroductionPerInstance(java.lang.Object targetInstance,
int methodIndex,
java.lang.Object[] parameters)
invokeIntroductionPerInstance in interface IntroductionContainertargetInstance - a reference to the target instancemethodIndex - the method indexparameters - the parameters for the invocation
public java.lang.Object invokeIntroductionPerThread(int methodIndex,
java.lang.Object[] parameters)
invokeIntroductionPerThread in interface IntroductionContainermethodIndex - the method indexparameters - the parameters for the invocation
public void swapImplementation(java.lang.Class newImplementationClass)
swapImplementation in interface IntroductionContainernewImplementationClass - the class of the new implementation to usepublic java.lang.Object getTargetInstance(java.lang.Object mixinImpl)
getTargetInstance in interface IntroductionContainermixinImpl - aka "this" from the mixin impl
public java.lang.Class getTargetClass(java.lang.Object mixinImpl)
getTargetClass in interface IntroductionContainermixinImpl - aka "this" from the mixin impl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||