|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.joinpoint.management.JoinPointManager
Manages the join points, invokes the correct advice chains, handles redeployment, JIT compilation etc. Each advised class' instance holds one instance of this class.
Method Summary | |
static AdviceInfo[] |
extractAfterFinallyAdvices(AdviceIndexInfo[] adviceIndexes)
Extracts the after finally advices. |
static AdviceInfo[] |
extractAfterReturningAdvices(AdviceIndexInfo[] adviceIndexes)
Extracts the after returning advices. |
static AdviceInfo[] |
extractAfterThrowingAdvices(AdviceIndexInfo[] adviceIndexes)
Extracts the after throwing advices. |
static AdviceInfo[] |
extractAroundAdvices(AdviceIndexInfo[] adviceIndexes)
Extracts the around advices. |
static AdviceInfo[] |
extractBeforeAdvices(AdviceIndexInfo[] adviceIndexes)
Extracts the before advices. |
static JoinPointManager |
getJoinPointManager(Class targetClass,
String uuid)
Returns the join point manager for a specific class. |
static JoinPointRegistry |
getJoinPointRegistry()
Returs the join point registry. |
boolean |
isAdvised(int joinPointHash)
Checks if a join point is advised, this does not mean that it has any advices attached to it. |
Object |
proceedWithCallJoinPoint(int methodHash,
int joinPointIndex,
Object[] parameters,
Class targetClass,
Object targetInstance,
Class thisClass,
Object thisInstance,
String withinMethodName,
String withinMethodSignature,
int joinPointType)
Proceeds with the invocation of the join point, passing on the method hash, the parameter values and the target instance. |
Object |
proceedWithExecutionJoinPoint(int methodHash,
int joinPointIndex,
Object[] parameters,
Object targetInstance,
int joinPointType)
Proceeds with the invocation of the join point, passing on the method hash, the parameter values and the target instance. |
Object |
proceedWithGetJoinPoint(int fieldHash,
int joinPointIndex,
Object targetInstance,
Class declaringClass,
String fieldSignature)
Proceeds with the invocation of the join point, passing on the method hash, the parameter values and the target instance. |
void |
proceedWithHandlerJoinPoint(int handlerHash,
int joinPointIndex,
Object exceptionInstance,
Object targetInstance,
String handlerSignature)
Proceeds with the invocation of the join point, passing on the method hash, the parameter values and the target instance. |
void |
proceedWithSetJoinPoint(int fieldHash,
int joinPointIndex,
Object[] fieldValue,
Object targetInstance,
Class declaringClass,
String fieldSignature)
Proceeds with the invocation of the join point, passing on the method hash, the parameter values and the target instance. |
static void |
reset(Class klass)
Reset the join point manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final JoinPointManager getJoinPointManager(Class targetClass, String uuid)
targetClass
- uuid
-
public static JoinPointRegistry getJoinPointRegistry()
public boolean isAdvised(int joinPointHash)
if (___AW_joinPointManager.hasAdvices(joinPointHash)) { // execute the advice chain } else { // invoke the prefixed target method }
joinPointHash
-
public final Object proceedWithExecutionJoinPoint(int methodHash, int joinPointIndex, Object[] parameters, Object targetInstance, int joinPointType) throws Throwable
methodHash
- joinPointIndex
- parameters
- targetInstance
- joinPointType
-
Throwable
public final Object proceedWithCallJoinPoint(int methodHash, int joinPointIndex, Object[] parameters, Class targetClass, Object targetInstance, Class thisClass, Object thisInstance, String withinMethodName, String withinMethodSignature, int joinPointType) throws Throwable
methodHash
- joinPointIndex
- parameters
- targetClass
- targetInstance
- thisClass
- thisInstance
- withinMethodName
- withinMethodSignature
- joinPointType
-
Throwable
public final void proceedWithSetJoinPoint(int fieldHash, int joinPointIndex, Object[] fieldValue, Object targetInstance, Class declaringClass, String fieldSignature) throws Throwable
fieldHash
- joinPointIndex
- fieldValue
- as the first arg in an Object arraytargetInstance
- declaringClass
- fieldSignature
-
Throwable
public final Object proceedWithGetJoinPoint(int fieldHash, int joinPointIndex, Object targetInstance, Class declaringClass, String fieldSignature) throws Throwable
fieldHash
- joinPointIndex
- targetInstance
- declaringClass
- fieldSignature
-
Throwable
public final void proceedWithHandlerJoinPoint(int handlerHash, int joinPointIndex, Object exceptionInstance, Object targetInstance, String handlerSignature) throws Throwable
handlerHash
- joinPointIndex
- exceptionInstance
- targetInstance
- handlerSignature
-
Throwable
public static final AdviceInfo[] extractAroundAdvices(AdviceIndexInfo[] adviceIndexes)
adviceIndexes
-
public static final AdviceInfo[] extractBeforeAdvices(AdviceIndexInfo[] adviceIndexes)
adviceIndexes
-
public static final AdviceInfo[] extractAfterFinallyAdvices(AdviceIndexInfo[] adviceIndexes)
adviceIndexes
-
public static final AdviceInfo[] extractAfterReturningAdvices(AdviceIndexInfo[] adviceIndexes)
adviceIndexes
-
public static final AdviceInfo[] extractAfterThrowingAdvices(AdviceIndexInfo[] adviceIndexes)
adviceIndexes
-
public static void reset(Class klass)
klass
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |