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

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.

主站蜘蛛池模板: 陈巴尔虎旗| 繁峙县| 玉屏| 池州市| 黔西县| 旬邑县| 横山县| 长阳| 姚安县| 揭阳市| 宜章县| 浏阳市| 金平| 山丹县| 浏阳市| 津南区| 昂仁县| 莲花县| 德惠市| 锦屏县| 潜江市| 于田县| 富阳市| 云南省| 微山县| 黄龙县| 广昌县| 庆云县| 神木县| 漾濞| 依兰县| 五华县| 台江县| 普安县| 芦山县| 千阳县| 呼和浩特市| 璧山县| 阿坝县| 澄城县| 广南县|