public class BeanMethodInterceptorChain extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<BeanMethodInterceptor> |
interceptorList
链中的拦截器列表
List of interceptors in the interceptors chain.
|
| 构造器和说明 |
|---|
BeanMethodInterceptorChain() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
add(BeanMethodInterceptor interceptor)
像链中添加一个方法拦截器
Add a method interceptor to the chain.
|
Object |
execute(Annotation annotation,
Object object,
Method method,
Object[] params)
调用一个具体的拦截器
Call a specific interceptor.
|
Object |
startInterceptor(Annotation annotation,
Object object,
Method method,
Object[] params,
net.sf.cglib.proxy.MethodProxy methodProxy)
将一个方法放入该拦截器链中执行,获取返回结果
Puts a method in the interceptor chain to retrieve the returned result.
|
protected List<BeanMethodInterceptor> interceptorList
protected void add(BeanMethodInterceptor interceptor)
interceptor - 拦截器public Object startInterceptor(Annotation annotation, Object object, Method method, Object[] params, net.sf.cglib.proxy.MethodProxy methodProxy) throws Throwable
annotation - 拦截方法的注解实例/Annotation instances of the intercepting method.object - 方法所属对象/Method ownermethod - 方法定义/Method definitionparams - 方法参数列表/Method parameter listmethodProxy - 方法代理器Throwable - 该方法可能抛出异常,请谨慎处理/This method may throw an exception, handle with care.Copyright © 2021. All rights reserved.