AOP 图

来源:互联网 发布:指针指向数组首地址 编辑:程序博客网 时间:2024/06/04 01:29

还是依照惯例,给一张牛逼的高清无码思维导图,总结一下以上各个知识点:

再来一张表格,总结一下各类增强类型所对应的解决方案:

增强类型基于 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 的整体架构:

0 0
原创粉丝点击