ProceedingJoinPoint和JoinPoint区别与联系

Proceedingjoinpoint 继承了 JoinPoint 。

Proceedingjoinpoint 是在JoinPoint的基础上暴露出 proceed 这个方法。

proceed方法很重要,这个是aop代理链执行的方法。暴露出这个方法,就能支持 aop:around 这种切面,也就是 Proceedingjoinpoint 才支持环绕通知(而其他的几种切面只需要用到JoinPoint,这跟切面类型有关), 它能决定是否走代理链还是走自己拦截的其他逻辑。

+3

《ProceedingJoinPoint和JoinPoint区别与联系》有一个想法

发表评论

您的电子邮箱地址不会被公开。