/** 从一个现成的<code>Resource</code>中创建spring容器,并初始化。 */
public ResourceLoadingXmlApplicationContext(Resource resource, ApplicationContext parentContext, boolean refresh)
throws BeansException {
super(parentContext);
this.configResource = resource;
setResourceLoadingExtender(new ResourceLoadingSupport(this));
if (refresh) {
refresh();
}
}