文件名称:Spring
介绍说明--下载内容均来自于网络,请自行研究使用
Spring中提供一些Aware相关的接口,BeanFactoryAware、 ApplicationContextAware、ResourceLoaderAware、ServletContextAware等等,其中最常用到的是ApplicationContextAware。实现ApplicationContextAware的Bean,在Bean被初始后,将会被注入 ApplicationContext的实例。ApplicationContextAware提供了publishEvent()方法,实现Observer(观察者)设计模式的事件传播机,提供了针对Bean的事件传播功能。通过Application.publishEvent方法,我们可以将事件通知系统内所有的ApplicationListener。 -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.
相关搜索: ApplicationContext
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Spring.doc