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

  • Spring 5 Design Patterns
  • Dinesh Rajput
  • 118字
  • 2021-07-08 09:59:27

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.

主站蜘蛛池模板: 丽江市| 健康| 昆明市| 虎林市| 郎溪县| 桑植县| 松滋市| 苍南县| 紫云| 镇巴县| 阿拉善右旗| 新邵县| 名山县| 阿巴嘎旗| 剑阁县| 平阳县| 清新县| 东宁县| 辰溪县| 东乡族自治县| 田阳县| 大理市| 名山县| 禹州市| 龙江县| 漳平市| 克山县| 延吉市| 雅江县| 茶陵县| 洪泽县| 西青区| 新宁县| 临漳县| 茂名市| 历史| 海兴县| 寻乌县| 志丹县| 双牌县| 泰和县|