1 16 17 package org.springframework.beans.factory.xml; 18 19 import org.springframework.beans.BeansException; 20 import org.springframework.beans.factory.BeanFactory; 21 import org.springframework.beans.factory.support.DefaultListableBeanFactory; 22 import org.springframework.core.io.Resource; 23 24 49 public class XmlBeanFactory extends DefaultListableBeanFactory { 50 51 private final XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this); 52 53 54 60 public XmlBeanFactory(Resource resource) throws BeansException { 61 this(resource, null); 62 } 63 64 71 public XmlBeanFactory(Resource resource, BeanFactory parentBeanFactory) throws BeansException { 72 super(parentBeanFactory); 73 this.reader.loadBeanDefinitions(resource); 74 } 75 76 } 77 | Popular Tags |