public class BeanMethodInterceptorManager extends Object
| 构造器和说明 |
|---|
BeanMethodInterceptorManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addBeanMethodInterceptor(Class annotationType,
BeanMethodInterceptor interceptor)
添加方法拦截器到管理器中
Add a method interceptor to the manager.
|
static Object |
doInterceptor(Annotation[] annotations,
Object object,
Method method,
Object[] params,
net.sf.cglib.proxy.MethodProxy methodProxy)
执行一个方法,根据方法的注解组装拦截器链,并放入拦截器链中执行
Implement a method that assembles the interceptor chain according to the method's annotations and puts it into the interceptor chain.
|
public static void addBeanMethodInterceptor(Class annotationType, BeanMethodInterceptor interceptor)
annotationType - 注解类型interceptor - 拦截器public static Object doInterceptor(Annotation[] annotations, Object object, Method method, Object[] params, net.sf.cglib.proxy.MethodProxy methodProxy) throws Throwable
annotations - 方法上标注的注解列表/Method annotated list of annotations.object - 方法所属对象/Method ownermethod - 方法定义/Method definitionparams - 方法参数列表/Method parameter listmethodProxy - 方法代理器Throwable - 该方法可能抛出异常,请谨慎处理/This method may throw an exception, handle with care.Copyright © 2021. All rights reserved.