The Spring Framework

org.springframework.aop.aspectj
Class AspectJAfterAdvice

java.lang.Object
  extended by org.springframework.aop.aspectj.AbstractAspectJAdvice
      extended by org.springframework.aop.aspectj.AspectJAfterAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, AspectJPrecedenceInformation, InitializingBean, Ordered

public class AspectJAfterAdvice
extends AbstractAspectJAdvice
implements org.aopalliance.intercept.MethodInterceptor

Spring AOP advice wrapping an AspectJ after advice method.

Since:
2.0
Author:
Rod Johnson

Field Summary
 
Fields inherited from class org.springframework.aop.aspectj.AbstractAspectJAdvice
aspectJAdviceMethod, JOIN_POINT_KEY
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
AspectJAfterAdvice(Method aspectJBeforeAdviceMethod, AspectJExpressionPointcut pointcut, AspectInstanceFactory aif)
           
 
Method Summary
 Object invoke(org.aopalliance.intercept.MethodInvocation mi)
           
 boolean isAfterAdvice()
           
 boolean isBeforeAdvice()
           
 
Methods inherited from class org.springframework.aop.aspectj.AbstractAspectJAdvice
afterPropertiesSet, argBinding, currentJoinPoint, getAspectJAdviceMethod, getAspectName, getDeclarationOrder, getDiscoveredReturningType, getDiscoveredThrowingType, getJoinPoint, getJoinPointMatch, getJoinPointMatch, getOrder, getPointcut, invokeAdviceMethod, invokeAdviceMethod, invokeAdviceMethodWithGivenArgs, setArgumentNames, setArgumentNamesFromStringArray, setAspectBean, setAspectName, setDeclarationOrder, setReturningName, setReturningNameNoCheck, setThrowingName, setThrowingNameNoCheck, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AspectJAfterAdvice

public AspectJAfterAdvice(Method aspectJBeforeAdviceMethod,
                          AspectJExpressionPointcut pointcut,
                          AspectInstanceFactory aif)
Method Detail

invoke

public Object invoke(org.aopalliance.intercept.MethodInvocation mi)
              throws Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
Throwable

isBeforeAdvice

public boolean isBeforeAdvice()
Specified by:
isBeforeAdvice in interface AspectJPrecedenceInformation

isAfterAdvice

public boolean isAfterAdvice()
Specified by:
isAfterAdvice in interface AspectJPrecedenceInformation

The Spring Framework

Copyright © 2002-2006 The Spring Framework.