|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for that all aspect container implementations must implement.
Method Summary | |
void |
addIntroductionContainer(String name,
IntroductionContainer introContainer)
Attach the introduction container to this aspect container to mirror the "aspect contains 0-n introduction" |
Object |
createPerClassAspect(Class callingClass)
Creates a new perClass cross-cutting instance, if it already exists then return it. |
Object |
createPerInstanceAspect(Object callingInstance)
Creates a new perInstance cross-cutting instance, if it already exists then return it. |
Object |
createPerJvmAspect()
Creates a new perJVM cross-cutting instance, if it already exists then return it. |
Object |
createPerThreadAspect(Thread thread)
Creates a new perThread cross-cutting instance, if it already exists then return it. |
Method |
getAdvice(int index)
Returns a specific advice by index. |
CrossCuttingInfo |
getCrossCuttingInfo()
Returns the cross-cutting info. |
IntroductionContainer |
getIntroductionContainer(String name)
Returns the introduction container of given name (introduction name) or null if not linked. |
Object |
invokeAdvice(int methodIndex,
JoinPoint joinPoint)
Invokes the advice method on a per JVM basis. |
Object |
invokeAdvice(int methodIndex,
JoinPoint joinPoint,
int[] methodToArgsIndexes)
Invokes the advice method on a per JVM basis. |
Method Detail |
public Object invokeAdvice(int methodIndex, JoinPoint joinPoint) throws Throwable
methodIndex
- the method indexjoinPoint
- the join point
Throwable
public Object invokeAdvice(int methodIndex, JoinPoint joinPoint, int[] methodToArgsIndexes) throws Throwable
methodIndex
- the method indexjoinPoint
- the join pointmethodToArgsIndexes
-
Throwable
public Method getAdvice(int index)
index
- the index
public Object createPerJvmAspect()
public Object createPerClassAspect(Class callingClass)
callingClass
-
public Object createPerInstanceAspect(Object callingInstance)
callingInstance
-
public Object createPerThreadAspect(Thread thread)
thread
- the thread for the aspect
public CrossCuttingInfo getCrossCuttingInfo()
public void addIntroductionContainer(String name, IntroductionContainer introContainer)
name
- of the introductionintroContainer
- introduction containerpublic IntroductionContainer getIntroductionContainer(String name)
name
- of the introduction
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |