Introduction - If you have any usage issues, please Google them yourself
Spring provides a number of related Aware interface, BeanFactoryAware, ApplicationContextAware, ResourceLoaderAware, ServletContextAware and so on, which is the most commonly used ApplicationContextAware. ApplicationContextAware realize the Bean, the Bean was the initial post, it will be injected into the ApplicationContext instance. ApplicationContextAware provided publishEvent () method, realize Observer (observer) design pattern events dissemination machine, to provide for the dissemination functions Bean events. Application.publishEvent method adopted, we can notify the system events all ApplicationListener.
Packet : 79419128spring.rar filelist
Spring.doc