类 AspectJAfterAdvice
java.lang.Object
infra.aop.aspectj.AbstractAspectJAdvice
infra.aop.aspectj.AspectJAfterAdvice
- 所有已实现的接口:
AfterAdvice,AspectJPrecedenceInformation,infra.core.Ordered,Serializable,Advice,Interceptor,MethodInterceptor
public class AspectJAfterAdvice
extends AbstractAspectJAdvice
implements MethodInterceptor, AfterAdvice, Serializable
Framework AOP advice wrapping an AspectJ after advice method.
- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson
- 另请参阅:
-
字段概要
从类继承的字段 infra.aop.aspectj.AbstractAspectJAdvice
aspectJAdviceMethod, JOIN_POINT_KEY从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明AspectJAfterAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif) -
方法概要
修饰符和类型方法说明Implement this method to perform extra treatments before and after the invocation.booleanReturn whether this is an after advice.booleanReturn whether this is a before advice.从类继承的方法 infra.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, setThrowingName, setThrowingNameNoCheck, supportsProceedingJoinPoint, toString
-
构造器详细资料
-
AspectJAfterAdvice
public AspectJAfterAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)
-
-
方法详细资料
-
invoke
从接口复制的说明:MethodInterceptorImplement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invokeJoinpoint.proceed().- 指定者:
invoke在接口中MethodInterceptor- 参数:
mi- the method invocation joinpoint- 返回:
- the result of the call to
Joinpoint.proceed(), might be intercepted by the interceptor. - 抛出:
Throwable- if the interceptors or the target-object throws an exception.
-
isBeforeAdvice
public boolean isBeforeAdvice()从接口复制的说明:AspectJPrecedenceInformationReturn whether this is a before advice.- 指定者:
isBeforeAdvice在接口中AspectJPrecedenceInformation
-
isAfterAdvice
public boolean isAfterAdvice()从接口复制的说明:AspectJPrecedenceInformationReturn whether this is an after advice.- 指定者:
isAfterAdvice在接口中AspectJPrecedenceInformation
-