org.springframework.aop.framework.adapter

Class AfterReturningAdviceInterceptor

  • java.lang.Object
    • org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object invoke(MethodInvocation mi)
      Implement this method to perform extra treatments before and after the invocation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.lang.Object invoke(MethodInvocation mi)
                                throws java.lang.Throwable
        Description copied from interface: MethodInterceptor
        Implement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invoke Joinpoint.proceed().
        Specified by:
        invoke in interface MethodInterceptor
        Parameters:
        mi - the method invocation joinpoint
        Returns:
        the result of the call to Joinpoint.proceed(); might be intercepted by the interceptor
        Throws:
        java.lang.Throwable - if the interceptors or the target object throws an exception