public class AspectJAfterThrowingAdvice extends AbstractAspectJAdvice implements AfterAdvice
aspectJAdviceMethod, JOIN_POINT_KEYHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
AspectJAfterThrowingAdvice(java.lang.reflect.Method aspectJBeforeAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(MethodInvocation mi) |
boolean |
isAfterAdvice()
Return whether this is an after advice.
|
boolean |
isBeforeAdvice()
Return whether this is a before advice.
|
void |
setThrowingName(java.lang.String name) |
private boolean |
shouldInvokeOnThrowing(java.lang.Throwable t)
In AspectJ semantics, after throwing advice that specifies a throwing clause
is only invoked if the thrown exception is a subtype of the given throwing type.
|
argBinding, buildSafePointcut, calculateArgumentBindings, createParameterNameDiscoverer, currentJoinPoint, getAspectClassLoader, getAspectInstanceFactory, getAspectJAdviceMethod, getAspectName, getDeclarationOrder, getDiscoveredReturningGenericType, getDiscoveredReturningType, getDiscoveredThrowingType, getJoinPoint, getJoinPointMatch, getJoinPointMatch, getOrder, getPointcut, invokeAdviceMethod, invokeAdviceMethod, invokeAdviceMethodWithGivenArgs, setArgumentNames, setArgumentNamesFromStringArray, setAspectName, setDeclarationOrder, setReturningName, setReturningNameNoCheck, setThrowingNameNoCheck, supportsProceedingJoinPoint, toStringpublic AspectJAfterThrowingAdvice(java.lang.reflect.Method aspectJBeforeAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif)
public boolean isBeforeAdvice()
AspectJPrecedenceInformationisBeforeAdvice in interface AspectJPrecedenceInformationpublic boolean isAfterAdvice()
AspectJPrecedenceInformationisAfterAdvice in interface AspectJPrecedenceInformationpublic void setThrowingName(java.lang.String name)
setThrowingName in class AbstractAspectJAdvicepublic java.lang.Object invoke(MethodInvocation mi)
throws java.lang.Throwable
java.lang.Throwableprivate boolean shouldInvokeOnThrowing(java.lang.Throwable t)