1. BeanFactory负责读取bean配置文档,管理bean的加载,实例化,维护bean之间的依赖关系,负责bean的生命周期。

2. ApplicationContext除了提供上述BeanFactory所能提供的功能之外,还提供了更完整的框架功能:

a. 国际化支持

b. 资源访问:Resource rs = ctx. getResource(“classpath:config.properties”), “file:c:/config.properties”

c. 事件传递:通过实现ApplicationContextAware接口

 

http://www.mianwww.com/html/2009/08/3486.html

相关文章:

  • 2021-12-18
  • 2021-04-19
  • 2021-10-16
  • 2021-05-29
  • 2021-08-31
  • 2022-12-23
猜你喜欢
  • 2021-12-05
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案