官术网_书友最值得收藏!

Bean factory

In the Spring Framework, the org.springframework.beans.factory.BeanFactory interface provides the bean factory, which is a Spring IoC container. XmlBeanFactory is an implementation class for this interface. This container reads the configuration metadata from an XML file. It is based on the GOF factory method design pattern--it creates, manages, caches, and wires the application objects in a sophisticated manner. The bean factory is merely an object pool where objects are created and managed by configuration. For small applications, this is sufficient, but enterprise applications demand more, so spring provides another version of the spring container with more features.

In the next section, we will learn about the application context and how Spring creates it in the application.

主站蜘蛛池模板: 加查县| 翁源县| 武山县| 洛浦县| 岑巩县| 九江市| 永兴县| 射阳县| 河北区| 尖扎县| 荣成市| 安吉县| 大关县| 泰安市| 台中市| 辽源市| 娱乐| 朝阳县| 商城县| 兰西县| 靖江市| 定边县| 青浦区| 南江县| 西昌市| 敖汉旗| 镇巴县| 二连浩特市| 大新县| 五华县| 永川市| 台东县| 陇川县| 南澳县| 萝北县| 盘锦市| 疏附县| 横峰县| 星子县| 黔南| 福安市|