Class AbstractScannedMethodInterceptor

    • Constructor Detail

      • AbstractScannedMethodInterceptor

        public AbstractScannedMethodInterceptor()
    • Method Detail

      • doSupport

        protected abstract boolean doSupport​(Method method,
                                             Class<?> targetClass)
        是否支持
        Parameters:
        method - method
        targetClass - targetClass
        Returns:
        是否支持
      • postAfter

        public void postAfter​(org.aopalliance.intercept.MethodInvocation invocation,
                              Object returnValue)
                       throws Throwable
        Description copied from interface: ScannedMethodInterceptor
        MethodInvocation 调用之后调用
        Specified by:
        postAfter in interface ScannedMethodInterceptor
        Parameters:
        invocation - invocation
        returnValue - 方法返回值,当发生异常时为异常对象
        Throws:
        Throwable
      • doBefore

        protected void doBefore​(org.aopalliance.intercept.MethodInvocation invocation)
                         throws Throwable
        invocation 调用前调用
        Throws:
        Throwable
      • doAfter

        protected void doAfter​(org.aopalliance.intercept.MethodInvocation invocation,
                               Object returnValue)
                        throws Throwable
        invocation 调用后调用
        Parameters:
        invocation - invocation
        returnValue - 方法返回值,当发生异常时为异常对象
        Throws:
        Throwable