在xml模式下的Bean加载篇章中我们看到容器AbstractRefreshableApplicationContext在方法loadBeanDefinitions中加载我们的beanDefinition,在子类AbstractXmlApplicationContext继承该方法loadBeanDefinitions(DefaultListableBeanFactory) ,指定XmlBeanDefinitionReader进行加载。
/**
* Load bean definitions into the given bean factory, typically through
* delegating to one or more bean definition readers.
* @param beanFactory the bean factory to load bean definitions into
* @throws BeansException if parsing of the bean definitions failed
* @throws IOException if loading of bean definition files failed
* @see org.springframework.beans.factory.support.PropertiesBeanDefinitionReader
* @see org.springframework.beans.factory.xml.XmlBeanDefinitionReader
*/
protected abstract void loadBeanDefinitions(DefaultListableBeanFactory beanFactory)
throws BeansException, IOException;</