Spring AOP 学习笔记-Springle 一代
Spring AOP 一代
????? DefaultIntroductionAdvisor在构造时,需要给它IntroductionInterceptor的实例,以及所要代理额外行为的接口,现在,来编写一个简单的程序测试:
hello1,AOP1hello2,AOP2增加的职责!
????? 对于IHello所参考的对象来说,通过Spring AOP的Introduction机制,现在IHello对象多了doOther()方法可以操作。
这个就是传统的Spring的支持,讲解的较为粗略,只是起到抛砖引玉的作用,详细的应用请读者查看其他的资料。
?