Spring
共 1 篇文章
Introdcution Advice
Spring AOP中的Introduction: 正如前面已经提到的,Introduction和前面的四个advice是有很大的区别的,introduction用于给target引入新的接口(例如锁,状态等功能),生成一个mix-in的接口。而普通的advice只是在原有接口基础上增加附加内容。 在Spring中,完成一个introduction需要三个内容:1、将要添加的新接口的定义,2、该新接口的实现,在实现的class中,必须实现Spring的IntroductionInterceptor接口(Spring in action原文有误),3、IntroductionAdvisor接口…
2010-01-13 16:25 · Spring · Spring · XML · AOP · Bean