/**
* Abstract bean factory superclass that implements default bean creation, 默认实现了超类 Abstract bean 的创造 bean
* with the full capabilities specified by the {@link RootBeanDefinition} class. 伴随着 RootBeanDefinition class 去创造完整的 bean
* Implements the {@link org.springframework.beans.factory.config.AutowireCapableBeanFactory} 实现 AutowireCapableBeanFactory 接口
* interface in addition to AbstractBeanFactory's {@link #createBean} method. 去添加 AbstractBeanFactory 的 createBean 方法
*
* <p>Provides bean creation (with constructor resolution), property population, 提供 bean 创建,伴随着构造函数解析,填充属性,
* wiring (including autowiring), and initialization. Handles runtime bean 注入(包括自动注入)和初始化。处理运行时 bean 引用,
* references, resolves managed collections, calls initialization methods, etc. 解析管理容器,调用初始化方法,以及
* Supports autowiring constructors, properties by name, and properties by type. 支持自动注入构造函数,按名字的属性,和按类型的属性
*
* <p>The main template method to be implemented by subclasses is 子类要实现的主要模版方法是 resolveDependency
* {@link #resolveDependency(DependencyDescriptor, String, Set, TypeConverter)},
* used for autowiring by type. In case of a factory which is capable of searching 按照类型去自动连接。如果工厂能够搜索 bean definition。
* its bean definitions, matching beans will typically be implemented through such 通常会按照这样的方式去搜索匹配 bean
* a search. For other factory styles, simplified matching algorithms can be implemented. 对于其他工厂风格可以实现简单的匹配实现
*
* <p>Note that this class does <i>not</i> assume or implement bean definition 注意这个类没有实现 bean definition 注册功能,
* registry capabilities. See {@link DefaultListableBeanFactory} for an implementation 查看 DefaultListableBeanFactory 和 ListableBeanFactory 和 BeanDefinitionRegistry 接口
* of the {@link org.springframework.beans.factory.ListableBeanFactory} and 分别代表这个工厂的 api 和 spi
* {@link BeanDefinitionRegistry} interfaces, which represent the API and SPI
* view of such a factory, respectively.
*
* @author Rod Johnson
* @author Juergen Hoeller
* @author Rob Harrop
* @author Mark Fisher
* @author Costin Leau
* @author Chris Beams
* @author Sam Brannen
* @since 13.02.2004
* @see RootBeanDefinition
* @see DefaultListableBeanFactory
* @see BeanDefinitionRegistry
*/
public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFactory
implements AutowireCapableBeanFactory {}
Spring源码-AbstractAutowireCapableBeanFactory-源码解读
最新推荐文章于 2024-05-08 17:03:13 发布