简单的Spring的bean实例化过程
?
?
先看起始点,载入先走AbstractBeanFactory
?
?
?
进入AbstractBeanFactory中的protected Class resolveBeanClass方法:
?
Object doCreateBean(final String beanName, final RootBeanDefinition mbd, final Object[] args) // Initialize the bean instance.Object exposedObject = bean;try {populateBean(beanName, mbd, instanceWrapper);if (exposedObject != null) {exposedObject = initializeBean(beanName, exposedObject, mbd);}}return exposedObject;//返回给AbstractBeanFactory?
?