BeanFactory or ApplicationContext?
来源:互联网 发布:mac 泡泡堂 编辑:程序博客网 时间:2024/04/29 10:06
Spring provides container implementations with two types :
Bean factories(defined by the org.springframework.beans.factory.BeanFactory interface)
are the simplest of containers, providing basic support for DI.
Application contexts(defined by the org.springframework.context.ApplicationContext interface)
build on the notion of a bean factory by providing application framework services.
BeanFactory
- A bean factory is a general-purpose factory, creating and dispensing many types of beans
- It is able to create associations between collaborating objects as they are instantiated
- A bean factory also takes part in the lifecycle of a bean
- While the bean factory will immediately load the bean definitions, the beans themselves will not be
instantiated until they are needed (lazy loading)
ApplicationContext
- advanced container ApplicationContext is much the same as a BeanFactory, but offers much more
- Because of the additional functionality it provides, an ApplicationContext is preferred over a
BeanFactory in nearly all applications - An application context preloads all singleton beans upon context startup (different from bean factory)
- BeanFactory or ApplicationContext?
- BeanFactory or ApplicationContext in Spring
- BeanFactory与ApplicationContext学习
- BeanFactory-ApplicationContext初始化Bean
- Spring Gossip: BeanFactory、ApplicationContext
- spring beans beanfactory applicationcontext
- BeanFactory和ApplicationContext学习
- Spring Bean ApplicationContext BeanFactory
- 【Spring】BeanFactory/ApplicationContext
- BeanFactory与ApplicationContext 区别
- Spring--BeanFactory和ApplicationContext
- BeanFactory和ApplicationContext
- ApplicationContext和BeanFactory
- BeanFactory与ApplicationContext【Spring】
- BeanFactory与ApplicationContext随记
- Beans, BeanFactory和ApplicationContext
- BeanFactory和ApplicationContext区别
- BeanFactory和ApplicationContext
- PreparedStatement用法遗补
- 《Java面向对象编程》学习笔记16—Java I/O系统
- coercion是什么意思
- 栈如何运用在四则运算中(JAVA实现)
- user * lacks CREATE SESSION privilege;logon denied
- BeanFactory or ApplicationContext?
- Google日历+手机,事务从此不担心(2008-02-18 23:03:15)
- 与下位机通信时最好不要做其他工作 否则容易导致数据传输异常
- CVPR大会今年的最佳论文奖-中大博士生创图像去雾术
- 表格排序
- 取出表中有重复的记录
- 善用Google日历,让事情做得更高效 Jason Ng | 2009-01-14 – 10:27 am
- 储存过程
- FND_MESSAGE