|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.attribdef.aspect.DefaultAspectContainerStrategy
Implements the default aspect container strategy.
| Constructor Summary | |
DefaultAspectContainerStrategy(Aspect prototype)
Creates a new transient container strategy. |
|
| Method Summary | |
void |
addIntroductionContainer(java.lang.String name,
IntroductionContainer introContainer)
Attach the introduction container to this aspect container to mirror the "aspect contains 0-n introduction" |
ContainerType |
getContainerType()
Returns the container type. |
IntroductionContainer |
getIntroductionContainer(java.lang.String name)
Returns the introduction container of given name (introduction name) or null if not linked. |
java.lang.reflect.Method |
getMethod(int index)
Returns a specific method by the method index. |
Aspect |
getPerClassAspect(java.lang.Class callingClass)
Returns the aspect for the current class. |
Aspect |
getPerInstanceAspect(java.lang.Object callingInstance)
Returns the aspect for the current instance. |
Aspect |
getPerJvmAspect()
Returns the sole per JVM aspect. |
Aspect |
getPerThreadAspect()
Returns the aspect for the current thread. |
java.lang.Object |
invokeAdvicePerClass(int methodIndex,
JoinPoint joinPoint)
Invokes the advice method on a per class basis. |
java.lang.Object |
invokeAdvicePerInstance(int methodIndex,
JoinPoint joinPoint)
Invokes the advice method on a per instance basis. |
java.lang.Object |
invokeAdvicePerJvm(int methodIndex,
JoinPoint joinPoint)
Invokes the advice method on a per JVM basis. |
java.lang.Object |
invokeAdvicePerThread(int methodIndex,
JoinPoint joinPoint)
Invokes the advice method on a per thread basis. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultAspectContainerStrategy(Aspect prototype)
prototype - the advice prototype| Method Detail |
public java.lang.Object invokeAdvicePerJvm(int methodIndex,
JoinPoint joinPoint)
invokeAdvicePerJvm in interface AspectContainermethodIndex - the method indexjoinPoint - the join point
public java.lang.Object invokeAdvicePerClass(int methodIndex,
JoinPoint joinPoint)
invokeAdvicePerClass in interface AspectContainermethodIndex - the method indexjoinPoint - the join point
public java.lang.Object invokeAdvicePerInstance(int methodIndex,
JoinPoint joinPoint)
invokeAdvicePerInstance in interface AspectContainermethodIndex - the method indexjoinPoint - the join point
public java.lang.Object invokeAdvicePerThread(int methodIndex,
JoinPoint joinPoint)
invokeAdvicePerThread in interface AspectContainermethodIndex - the method indexjoinPoint - the join point
public ContainerType getContainerType()
getContainerType in interface AspectContainerpublic java.lang.reflect.Method getMethod(int index)
getMethod in interface AspectContainerindex - the method index
public Aspect getPerJvmAspect()
getPerJvmAspect in interface AspectContainerpublic Aspect getPerClassAspect(java.lang.Class callingClass)
getPerClassAspect in interface AspectContainercallingClass -
public Aspect getPerInstanceAspect(java.lang.Object callingInstance)
getPerInstanceAspect in interface AspectContainercallingInstance -
public Aspect getPerThreadAspect()
getPerThreadAspect in interface AspectContainer
public void addIntroductionContainer(java.lang.String name,
IntroductionContainer introContainer)
addIntroductionContainer in interface AspectContainername - of the introductionintroContainer - introduction containerpublic IntroductionContainer getIntroductionContainer(java.lang.String name)
getIntroductionContainer in interface AspectContainername - of the introduction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||