PopulateBean的过程

书中人 2019年09月18日 1,745次浏览
  1. 属性注入的过程

  2. 
    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类图如下: