remove after method

This commit is contained in:
Looly
2020-10-21 13:47:28 +08:00
parent f0399a72ad
commit 5610878324
2 changed files with 1 additions and 18 deletions

View File

@@ -18,24 +18,6 @@ public class SimpleAspect implements Aspect, Serializable {
return true;
}
/**
* 目标方法执行后的操作
* 如果 target.method 抛出异常且
*
* @param target 目标对象
* @param method 目标方法
* @param args 参数
* @return 是否允许返回值(接下来的操作)
* @see Aspect#afterException 返回true,则不会执行此操作
* 如果
* @see Aspect#afterException 返回false,则无论target.method是否抛出异常均会执行此操作
*/
public boolean after(Object target, Method method, Object[] args) {
//继承此类后实现此方法
return after(target, method, args, null);
}
@Override
public boolean after(Object target, Method method, Object[] args, Object returnVal) {
//继承此类后实现此方法