intercept
public Object intercept(Object obj,
Method method,
Object[] params,
net.sf.cglib.proxy.MethodProxy methodProxy)
throws Throwable
拦截方法
Intercept method
- 指定者:
intercept 在接口中 net.sf.cglib.proxy.MethodInterceptor
- 参数:
obj - 方法所属对象/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.