Uses of Interface
cloud.opencode.base.reflect.proxy.MethodInterceptor
Packages that use MethodInterceptor
-
Uses of MethodInterceptor in cloud.opencode.base.reflect.proxy
Methods in cloud.opencode.base.reflect.proxy that return MethodInterceptorModifier and TypeMethodDescriptiondefault MethodInterceptorMethodInterceptor.andThen(MethodInterceptor next) Chains this interceptor with another 将此拦截器与另一个链接default MethodInterceptorMethodInterceptor.compose(MethodInterceptor before) Creates an interceptor that runs before this one 创建一个在此拦截器之前运行的拦截器static MethodInterceptorCreates an interceptor that always returns a value 创建一个总是返回指定值的拦截器static MethodInterceptorMethodInterceptor.passThrough()Creates an interceptor that does nothing and just invokes the original 创建一个不做任何事只调用原始方法的拦截器static MethodInterceptorCreates an interceptor that throws an exception 创建一个总是抛出异常的拦截器Methods in cloud.opencode.base.reflect.proxy with parameters of type MethodInterceptorModifier and TypeMethodDescriptiondefault MethodInterceptorMethodInterceptor.andThen(MethodInterceptor next) Chains this interceptor with another 将此拦截器与另一个链接default MethodInterceptorMethodInterceptor.compose(MethodInterceptor before) Creates an interceptor that runs before this one 创建一个在此拦截器之前运行的拦截器static <T> TOpenProxy.create(Class<T> interfaceClass, MethodInterceptor interceptor) Creates a proxy for an interface with interceptor 为接口创建带拦截器的代理ProxyFactory.intercept(MethodInterceptor interceptor) Sets the default interceptor 设置默认拦截器ProxyFactory.intercept(String methodName, MethodInterceptor interceptor) Sets an interceptor for a specific method 为特定方法设置拦截器ProxyFactory.intercept(String methodName, Class<?>[] parameterTypes, MethodInterceptor interceptor) Sets an interceptor for a specific method with parameter types 为特定方法(带参数类型)设置拦截器static <T> TOpenProxy.wrap(Class<T> interfaceClass, T target, MethodInterceptor interceptor) Creates a proxy wrapping a target with interceptor 创建带拦截器的包装目标对象的代理