org.springframework.aop.aspectj

Class AspectJAroundAdvice

    • 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
      • lazyGetProceedingJoinPoint

        protected org.aspectj.lang.ProceedingJoinPoint lazyGetProceedingJoinPoint(ProxyMethodInvocation rmi)
        Return the ProceedingJoinPoint for the current invocation, instantiating it lazily if it hasn't been bound to the thread already.
        Parameters:
        rmi - the current Spring AOP ReflectiveMethodInvocation, which we'll use for attribute binding
        Returns:
        the ProceedingJoinPoint to make available to advice methods