类 MultipleBeanMethodInterceptorChain


  • public class MultipleBeanMethodInterceptorChain
    extends BeanMethodInterceptorChain
    多重拦截器链:只当一个方法存在多条连接器链时使用,该链每次执行一个方法前初始化、组装 Multiple interceptors chain.Only when one method has multiple connector chains, The chain is initialized and assembled every time a method is executed.
    作者:
    Eva Wang
    • 字段详细资料

      • annotationList

        protected List<Annotation> annotationList
        注解列表
      • index

        protected Integer index
        执行进度标记 Progress mark
      • methodProxy

        protected net.sf.cglib.proxy.MethodProxy methodProxy
        方法代理器 Method proxy object
    • 构造器详细资料

      • MultipleBeanMethodInterceptorChain

        public MultipleBeanMethodInterceptorChain​(List<Annotation> annotations,
                                                  List<BeanMethodInterceptorChain> chainList)
        初始化多重拦截器链 Initialize multiple interceptor chains.
        参数:
        annotations - 注解列表
        chainList - 拦截器链列表
    • 方法详细资料

      • startInterceptor

        public Object startInterceptor​(Annotation annotation,
                                       Object object,
                                       Method method,
                                       Object[] params,
                                       net.sf.cglib.proxy.MethodProxy methodProxy)
                                throws Throwable
        开始执行拦截器链 Start executing the interceptor chain.
        覆盖:
        startInterceptor 在类中 BeanMethodInterceptorChain
        参数:
        annotation - 拦截方法的注解实例/Annotation instances of the intercepting method.
        object - 方法所属对象/Method owner
        method - 方法定义/Method definition
        params - 方法参数列表/Method parameter list
        methodProxy - 方法代理器
        返回:
        返回拦截的方法的返回值,可以对该值进行处理和替换/Returns the return value of the intercepting method, which can be processed and replaced.
        抛出:
        Throwable - 该方法可能抛出异常,请谨慎处理/This method may throw an exception, handle with care.
      • execute

        public Object execute​(Annotation annotation,
                              Object object,
                              Method method,
                              Object[] params)
                       throws Throwable
        调用一个具体的拦截器 Call a specific interceptor.
        覆盖:
        execute 在类中 BeanMethodInterceptorChain
        参数:
        annotation - 拦截方法的注解实例/Annotation instances of the intercepting method.
        object - 方法所属对象/Method owner
        method - 方法定义/Method definition
        params - 方法参数列表/Method parameter list
        返回:
        返回拦截的方法的返回值,可以对该值进行处理和替换/Returns the return value of the intercepting method, which can be processed and replaced.
        抛出:
        Throwable - 该方法可能抛出异常,请谨慎处理/This method may throw an exception, handle with care.