Class FieldValueInterceptor
java.lang.Object
com.codingapi.springboot.framework.domain.proxy.FieldValueInterceptor
- All Implemented Interfaces:
org.springframework.cglib.proxy.Callback,org.springframework.cglib.proxy.MethodInterceptor
public class FieldValueInterceptor
extends Object
implements org.springframework.cglib.proxy.MethodInterceptor
实体代理
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FieldValueInterceptor
public FieldValueInterceptor(Class<?> targetClass, Object... args) throws NoSuchMethodException, InvocationTargetException, InstantiationException, IllegalAccessException
-
-
Method Details
-
createProxy
创建代理- Returns:
- 代理对象
-
intercept
public Object intercept(Object obj, Method method, Object[] args, org.springframework.cglib.proxy.MethodProxy proxy) throws Throwable 拦截方法- Specified by:
interceptin interfaceorg.springframework.cglib.proxy.MethodInterceptor- Parameters:
obj- 代理对象method- 方法args- 参数proxy- 代理- Returns:
- 方法返回值
- Throws:
Throwable- 异常
-