Package org.aoju.bus.proxy.aspects
Interface Aspectj
- All Known Implementing Classes:
AspectjSimple,AspectjTimes
public interface Aspectj
切面接口
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionboolean目标方法执行后的操作 如果 target.method 抛出异常且booleanafterException(Object target, Method method, Object[] args, Throwable e) 目标方法抛出异常时的操作boolean目标方法执行前的操作
-
Method Details
-
before
目标方法执行前的操作- Parameters:
target- 目标对象method- 目标方法args- 参数- Returns:
- 是否继续执行接下来的操作
-
after
目标方法执行后的操作 如果 target.method 抛出异常且- Parameters:
target- 目标对象method- 目标方法args- 参数returnVal- 目标方法执行返回值- Returns:
- 是否允许返回值(接下来的操作)
- See Also:
-
afterException
目标方法抛出异常时的操作- Parameters:
target- 目标对象method- 目标方法args- 参数e- 异常- Returns:
- 是否允许抛出异常
-