类 ModularServiceMethodInterceptor

  • 所有已实现的接口:
    net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor

    public class ModularServiceMethodInterceptor
    extends Object
    implements net.sf.cglib.proxy.MethodInterceptor
    系统默认的服务拦截器 System default service interceptor.
    作者:
    Eva
    • 构造器详细资料

      • ModularServiceMethodInterceptor

        public ModularServiceMethodInterceptor()
    • 方法详细资料

      • 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.