1、切面after切点,将目标方法执行返回值,开放给切点

This commit is contained in:
刘羽铖 2019-09-25 10:16:40 +08:00
parent c32e8d9b55
commit 34cc3dcb57
3 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import java.lang.reflect.Method;
* 切面接口
*
* @author looly
* @author ted.L
* @since 4.18
*/
public interface Aspect{

View File

@ -52,7 +52,7 @@ public class CglibInterceptor implements MethodInterceptor, Serializable {
}
}
}
if (aspect.after(target, method, args)) {
if (aspect.after(target, method, args, result)) {
return result;
}
return null;

View File

@ -53,7 +53,7 @@ public class JdkInterceptor implements InvocationHandler, Serializable{
}
}
}
if (aspect.after(target, method, args)) {
if (aspect.after(target, method, args, result)) {
return result;
}
return null;