Package org.aoju.bus.proxy.aspects
Class AspectjSimple
java.lang.Object
org.aoju.bus.proxy.aspects.AspectjSimple
- All Implemented Interfaces:
Serializable,Aspectj
- Direct Known Subclasses:
AspectjTimes
简单切面类,不做任何操作
可以继承此类实现自己需要的方法即可
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean目标方法执行后的操作 如果 target.method 抛出异常且boolean目标方法执行后的操作 如果 target.method 抛出异常且booleanafterException(Object target, Method method, Object[] args, Throwable e) 目标方法抛出异常时的操作boolean目标方法执行前的操作
-
Constructor Details
-
AspectjSimple
public AspectjSimple()
-
-
Method Details
-
before
Description copied from interface:Aspectj目标方法执行前的操作 -
after
目标方法执行后的操作 如果 target.method 抛出异常且- Parameters:
target- 目标对象method- 目标方法args- 参数- Returns:
- 是否允许返回值(接下来的操作)
- See Also:
-
after
Description copied from interface:Aspectj目标方法执行后的操作 如果 target.method 抛出异常且 -
afterException
Description copied from interface:Aspectj目标方法抛出异常时的操作- Specified by:
afterExceptionin interfaceAspectj- Parameters:
target- 目标对象method- 目标方法args- 参数e- 异常- Returns:
- 是否允许抛出异常
-