本文给出AOP经常使用技术和概念的知识点,思惟导图绘制 摘自《架构探险》一书架构
思惟导图spa
各加强类型所对应的解决方案接口
加强类型 | 基于AOP接口 | 基于AOP注解 | 基于<aop:config>配置 |
Before(前置加强) | MethodBeforeAdvice | @Before | <aop:before> |
After Advice(后置加强) | AfterReturningAdvice | @After | <aop:after> |
Around Advice(环绕加强) | MethodIntercepter | @Around | <aop:around> |
Throws Advice(抛出加强) | ThrowsAdvice | @AfterThrowing | <aop:after-throwing> |
Introduction(引入加强) | DelegatingIntroductionInterceptor | @DeclareParents | <aop:declare-parents> |