类 DelegatingIntroductionInterceptor

    • 构造器详细资料

      • DelegatingIntroductionInterceptor

        public DelegatingIntroductionInterceptor​(Object delegate)
        Construct a new DelegatingIntroductionInterceptor, providing a delegate that implements the interfaces to be introduced.
        参数:
        delegate - the delegate that implements the introduced interfaces
      • DelegatingIntroductionInterceptor

        protected DelegatingIntroductionInterceptor()
        Construct a new DelegatingIntroductionInterceptor. The delegate will be the subclass, which must implement additional interfaces.
    • 方法详细资料

      • invoke

        public Object invoke​(MethodInvocation mi)
                      throws Throwable
        Subclasses may need to override this if they want to perform custom behaviour in around advice. However, subclasses should invoke this method, which handles introduced interfaces and forwarding to the target.
        指定者:
        invoke 在接口中 MethodInterceptor
        参数:
        mi - 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