org.springframework.aop.aspectj
Class AspectJAfterThrowingAdvice
java.lang.Object
org.springframework.aop.aspectj.AbstractAspectJAdvice
org.springframework.aop.aspectj.AspectJAfterThrowingAdvice
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, AfterAdvice, AspectJPrecedenceInformation, Ordered
public class AspectJAfterThrowingAdvice
- extends AbstractAspectJAdvice
- implements org.aopalliance.intercept.MethodInterceptor, AfterAdvice
Spring AOP advice wrapping an AspectJ after-throwing advice method.
- Since:
- 2.0
- Author:
- Rod Johnson
Method Summary |
java.lang.Object |
invoke(org.aopalliance.intercept.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)
|
Methods inherited from class org.springframework.aop.aspectj.AbstractAspectJAdvice |
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, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AspectJAfterThrowingAdvice
public AspectJAfterThrowingAdvice(java.lang.reflect.Method aspectJBeforeAdviceMethod,
AspectJExpressionPointcut pointcut,
AspectInstanceFactory aif)
isBeforeAdvice
public boolean isBeforeAdvice()
- Description copied from interface:
AspectJPrecedenceInformation
- Return whether this is a before advice.
- Specified by:
isBeforeAdvice
in interface AspectJPrecedenceInformation
isAfterAdvice
public boolean isAfterAdvice()
- Description copied from interface:
AspectJPrecedenceInformation
- Return whether this is an after advice.
- Specified by:
isAfterAdvice
in interface AspectJPrecedenceInformation
setThrowingName
public void setThrowingName(java.lang.String name)
- Overrides:
setThrowingName
in class AbstractAspectJAdvice
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation mi)
throws java.lang.Throwable
- Specified by:
invoke
in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
java.lang.Throwable
Copyright © 2002-2008 The Spring Framework.