Class AfterReturningAdviceInterceptor
- java.lang.Object
- org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor
- All Implemented Interfaces:
Serializable
,Advice
,Interceptor
,MethodInterceptor
,AfterAdvice
public class AfterReturningAdviceInterceptor extends Object implements MethodInterceptor, AfterAdvice, Serializable
Interceptor to wrap anAfterReturningAdvice
. Used internally by the AOP framework; application developers should not need to use this class directly.- Author:
- Rod Johnson
- See Also:
MethodBeforeAdviceInterceptor
,ThrowsAdviceInterceptor
, Serialized Form
Constructor Summary
Constructors Constructor Description AfterReturningAdviceInterceptor(AfterReturningAdvice advice)
Create a new AfterReturningAdviceInterceptor for the given advice.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
invoke(MethodInvocation mi)
Implement this method to perform extra treatments before and after the invocation.
Constructor Detail
AfterReturningAdviceInterceptor
public AfterReturningAdviceInterceptor(AfterReturningAdvice advice)
Create a new AfterReturningAdviceInterceptor for the given advice.- Parameters:
advice
- the AfterReturningAdvice to wrap
Method Detail
invoke
public Object invoke(MethodInvocation mi) throws Throwable
Description copied from interface:MethodInterceptor
Implement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invokeJoinpoint.proceed()
.- Specified by:
invoke
in interfaceMethodInterceptor
- Parameters:
mi
- the method invocation joinpoint- Returns:
- the result of the call to
Joinpoint.proceed()
; might be intercepted by the interceptor - Throws:
Throwable
- if the interceptors or the target object throws an exception