类 XmlBeanFactory

    • 构造器详细资料

      • XmlBeanFactory

        public XmlBeanFactory​(Resource resource)
                       throws BeansException
        已过时。
        Create a new XmlBeanFactory with the given resource, which must be parsable using DOM.
        参数:
        resource - the XML resource to load bean definitions from
        抛出:
        BeansException - in case of loading or parsing errors
      • XmlBeanFactory

        public XmlBeanFactory​(Resource resource,
                              BeanFactory parentBeanFactory)
                       throws BeansException
        已过时。
        Create a new XmlBeanFactory with the given input stream, which must be parsable using DOM.
        参数:
        resource - the XML resource to load bean definitions from
        parentBeanFactory - parent bean factory
        抛出:
        BeansException - in case of loading or parsing errors