类 MultipleBeanMethodInterceptorChain
- java.lang.Object
-
- network.nerve.core.core.inteceptor.base.BeanMethodInterceptorChain
-
- network.nerve.core.core.inteceptor.base.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
-
-
字段概要
字段 修饰符和类型 字段 说明 protected List<Annotation>annotationList注解列表protected Integerindex执行进度标记 Progress markprotected net.sf.cglib.proxy.MethodProxymethodProxy方法代理器 Method proxy object-
从类继承的字段 network.nerve.core.core.inteceptor.base.BeanMethodInterceptorChain
interceptorList
-
-
构造器概要
构造器 构造器 说明 MultipleBeanMethodInterceptorChain(List<Annotation> annotations, List<BeanMethodInterceptorChain> chainList)初始化多重拦截器链 Initialize multiple interceptor chains.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectexecute(Annotation annotation, Object object, Method method, Object[] params)调用一个具体的拦截器 Call a specific interceptor.ObjectstartInterceptor(Annotation annotation, Object object, Method method, Object[] params, net.sf.cglib.proxy.MethodProxy methodProxy)开始执行拦截器链 Start executing the interceptor chain.-
从类继承的方法 network.nerve.core.core.inteceptor.base.BeanMethodInterceptorChain
add
-
-
-
-
字段详细资料
-
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 ownermethod- 方法定义/Method definitionparams- 方法参数列表/Method parameter listmethodProxy- 方法代理器- 返回:
- 返回拦截的方法的返回值,可以对该值进行处理和替换/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 ownermethod- 方法定义/Method definitionparams- 方法参数列表/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.
-
-