-
属性注入的过程
-
public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFactory implements AutowireCapableBeanFactory{ /** * Populate the bean instance in the given BeanWrapper with the property values * from the bean definition. * * @param beanName the name of the bean * @param mbd the bean definition for the bean * @param bw the BeanWrapper with bean instance */ @SuppressWarnings("deprecation") // for postProcessPropertyValues protected void populateBean(String beanName, RootBeanDefinition mbd, @Nullable BeanWrapper bw) }
AbstractAutowireCapaableBeanFactory类图如下:
Q.E.D.