您的位置:首页 > 运维架构

AOP 图

2016-01-20 15:28 302 查看
还是依照惯例,给一张牛逼的高清无码思维导图,总结一下以上各个知识点:





再来一张表格,总结一下各类增强类型所对应的解决方案:
增强类型基于 AOP 接口基于 @Aspect基于 <aop:config>
Before Advice(前置增强)
MethodBeforeAdvice
@Before
<aop:before>
AfterAdvice(后置增强)
AfterReturningAdvice
@After
<aop:after>
AroundAdvice(环绕增强)
MethodInterceptor
@Around
<aop:around>
ThrowsAdvice(抛出增强
ThrowsAdvice
@AfterThrowing
<aop:after-throwing>
IntroductionAdvice(引入增强)
DelegatingIntroductionInterceptor
@DeclareParents
<aop:declare-parents>
最后给一张 UML 类图描述一下 Spring AOP 的整体架构:



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: