Spring框架学习[AOP通知以及编程式AOP ](四)
2014-11-24 03:05:50
·
作者:
·
浏览: 4
; //缓存获取到的通知 this.methodCache.put(cacheKey, cached); } return cached; }
通过上面的源码我们看到,AdvisedSupport第一次获取通知时,会从通知链容器DefaultAdvisorChainFactory中通过getInterceptorsAndDynamicInterceptionAdvice方法获取指定的通知。
(2).DefaultAdvisorChainFactory获取指类,指定方法的通知:
DefaultAdvisorChainFactory通过getInterceptorsAndDynamicInterceptionAdvice方法获取指定类中指定方法的通知,源码如下:
[java] view plaincopyprint //获取通知 public List