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

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.

主站蜘蛛池模板: 会同县| 炎陵县| 攀枝花市| 海宁市| 武平县| 体育| 台湾省| 平山县| 皮山县| 湄潭县| 泌阳县| 怀柔区| 江达县| 鲁山县| 肇州县| 隆德县| 云梦县| 前郭尔| 八宿县| 松桃| 贞丰县| 伊吾县| 永济市| 衡山县| 华宁县| 莱芜市| 广州市| 新源县| 桓台县| 珠海市| 阳江市| 保亭| 商都县| 龙江县| 仙居县| 循化| 济阳县| 临洮县| 苏州市| 保定市| 大港区|