BeanFactory supports two object modes.
BeanFactory支持两个对象模型。
BeanFactory can also manage relationships between objects.
BeanFactory也可以管理对象之间的关系。
A primary component of the core container is the BeanFactory, an implementation of the Factory pattern.
核心容器的主要组件是BeanFactory,它是工厂模式的实现。
The most commonly used BeanFactory definition is the XmlBeanFactory, which loads beans based on definitions in an XML file, as shown in Listing 1.
最常用的BeanFactory定义是XmlBeanFactory,它根据XML文件中的定义装入bean,如清单1所示。
A Spring object (ApplicationContext or BeanFactory) can use this configuration file to create the beans, inject the dependencies and many other things not shown here.
Spring对象(ApplicationContext或BeanFactory)可以使用此配置文件来创建Bean,注入依赖项,以及执行许多其他此处未显示的操作。
The BeanFactory applies the Inversion of Control (IOC) pattern to separate an application's configuration and dependency specification from the actual application code.
BeanFactory 使用控制反转 (IOC)模式将应用程序的配置和依赖性规范与实际的应用程序代码分开。
The next-highest layer of abstraction is the BeanFactory interface, an implementation of the Factory design pattern that enables objects to be created and retrieved by name.
下一个最高级抽象是BeanFactory接口,它是工厂设计模式的实现,允许通过名称创建和检索对象。
After the file is retrieved, the Spring BeanFactory consumes the XML file and transforms the data into the defined POJO that will be returned to the simulator service layer.
检索完成后,SpringBeanFactory 将会使用该XML文件并将数据转换成已定义的POJO,后者将被返回给模拟器服务层。
After the file is retrieved, the Spring BeanFactory consumes the XML file and transforms the data into the defined POJO that will be returned to the simulator service layer.
检索完成后,SpringBeanFactory 将会使用该XML文件并将数据转换成已定义的POJO,后者将被返回给模拟器服务层。
应用推荐