接口 IMethodEnhanceHandler
- 所有已知实现类:
EnDecryptedHandler
public interface IMethodEnhanceHandler
方法增强处理器
-
方法概要
修饰符和类型方法说明default void
after
(Method method, String[] argumentsNames, Object[] arguments, Object aThis, AccessibleObject staticPart, AtomicReference<Object> proceed) 方法执行之后操作default void
afterThrows
(Method method, String[] argumentsNames, Object[] arguments, Object aThis, AccessibleObject staticPart, Throwable throwable) 方法执行报错之后操作default void
before
(Method method, String[] argumentsNames, Object[] arguments, Object aThis, AccessibleObject staticPart) 方法执行之前操作
-
方法详细资料
-
before
default void before(Method method, String[] argumentsNames, Object[] arguments, Object aThis, AccessibleObject staticPart) 方法执行之前操作- 参数:
method
- 执行的方法argumentsNames
- 执行的方法的参数名arguments
- 执行的方法的参数aThis
- 当前对象staticPart
- The static part is an accessible object on which a chain of interceptors is installed
-
after
default void after(Method method, String[] argumentsNames, Object[] arguments, Object aThis, AccessibleObject staticPart, AtomicReference<Object> proceed) 方法执行之后操作- 参数:
method
- 执行的方法argumentsNames
- 执行的方法的参数名arguments
- 执行的方法的参数aThis
- 当前对象staticPart
- The static part is an accessible object on which a chain of interceptors is installedproceed
- 返回的结果
-
afterThrows
default void afterThrows(Method method, String[] argumentsNames, Object[] arguments, Object aThis, AccessibleObject staticPart, Throwable throwable) 方法执行报错之后操作- 参数:
method
- 执行的方法argumentsNames
- 执行的方法的参数名arguments
- 执行的方法的参数aThis
- 当前对象staticPart
- The static part is an accessible object on which a chain of interceptors is installedthrowable
- 抛出异常
-