接口 MethodInterceptor

    • 方法详细资料

      • invoke

        Object invoke​(MethodInvocation invocation)
               throws Throwable
        Implement this method to perform extra treatments before and after the invocation. Polite implementations would certainly like to invoke Joinpoint.proceed().
        参数:
        invocation - the method invocation joinpoint
        返回:
        the result of the call to Joinpoint.proceed(); might be intercepted by the interceptor
        抛出:
        Throwable - if the interceptors or the target object throws an exception