public class AfterReturningAdviceInterceptor extends Object implements MethodInterceptor, AfterAdvice, Serializable
AfterReturningAdvice
.
Used internally by the AOP framework; application developers should not need
to use this class directly.MethodBeforeAdviceInterceptor
,
ThrowsAdviceInterceptor
,
Serialized FormConstructor and Description |
---|
AfterReturningAdviceInterceptor(AfterReturningAdvice advice)
Create a new AfterReturningAdviceInterceptor for the given advice.
|
Modifier and Type | Method and Description |
---|---|
Object |
invoke(MethodInvocation mi)
Implement this method to perform extra treatments before and
after the invocation.
|
public AfterReturningAdviceInterceptor(AfterReturningAdvice advice)
advice
- the AfterReturningAdvice to wrappublic Object invoke(MethodInvocation mi) throws Throwable
MethodInterceptor
Joinpoint.proceed()
.invoke
in interface MethodInterceptor
mi
- the method invocation joinpointJoinpoint.proceed()
;
might be intercepted by the interceptorThrowable
- if the interceptors or the target object
throws an exception