类 PersistConfigInterceptor
- java.lang.Object
-
- network.nerve.core.core.config.persist.PersistConfigInterceptor
-
- 所有已实现的接口:
BeanMethodInterceptor<Configuration>
@Interceptor(Configuration.class) public class PersistConfigInterceptor extends Object implements BeanMethodInterceptor<Configuration>
-
-
构造器概要
构造器 构造器 说明 PersistConfigInterceptor()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectintercept(Configuration annotation, Object object, Method method, Object[] params, BeanMethodInterceptorChain interceptorChain)拦截器拦截某个方法时,使用该方法,在方法中通过逻辑决定是否继续调用拦截的方法,可以在调用之前和之后做一些业务上的操作 When an interceptor intercepts a method, the method is used to logically determine whether the intercepting method is called in the method, and it can do some business operations before and after the call.
-
-
-
方法详细资料
-
intercept
public Object intercept(Configuration annotation, Object object, Method method, Object[] params, BeanMethodInterceptorChain interceptorChain) throws Throwable
从接口复制的说明:BeanMethodInterceptor拦截器拦截某个方法时,使用该方法,在方法中通过逻辑决定是否继续调用拦截的方法,可以在调用之前和之后做一些业务上的操作 When an interceptor intercepts a method, the method is used to logically determine whether the intercepting method is called in the method, and it can do some business operations before and after the call.- 指定者:
intercept在接口中BeanMethodInterceptor<Configuration>- 参数:
annotation- 拦截方法的注解实例/Annotation instances of the intercepting method.object- 方法所属对象/Method ownermethod- 方法定义/Method definitionparams- 方法参数列表/Method parameter listinterceptorChain- 拦截器链- 返回:
- 返回拦截的方法的返回值,可以对该值进行处理和替换/Returns the return value of the intercepting method, which can be processed and replaced.
- 抛出:
Throwable- 该方法可能抛出异常,请谨慎处理/This method may throw an exception, handle with care.
-
-