org.springframework.beans.factory.xml

## 接口 BeanDefinitionDocumentReader

- 所有已知实现类:
    DefaultBeanDefinitionDocumentReader

      public interface BeanDefinitionDocumentReader

  SPI for parsing an XML document that contains Spring bean definitions. Used by `XmlBeanDefinitionReader` for actually parsing a DOM document.

  Instantiated per document to parse: implementations can hold state in instance variables during the execution of the `registerBeanDefinitions` method — for example, global settings that are defined for all bean definitions in the document.

  从以下版本开始:
    18.12.2003
  作者:
    Juergen Hoeller, Rob Harrop
  另请参阅:
    `XmlBeanDefinitionReader.setDocumentReaderClass(java.lang.Class<? extends org.springframework.beans.factory.xml.BeanDefinitionDocumentReader>)`

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `registerBeanDefinitions(Document doc, XmlReaderContext readerContext)` Read bean definitions from the given DOM document and register them with the registry in the given reader context.

- - ### 方法详细资料

    - #### registerBeanDefinitions

          void registerBeanDefinitions(Document doc,
                                       XmlReaderContext readerContext)
                                throws BeanDefinitionStoreException

      Read bean definitions from the given DOM document and register them with the registry in the given reader context.
      参数:
        `doc` - the DOM document
        `readerContext` - the current context of the reader (includes the target registry and the resource being parsed)
      抛出:
        `BeanDefinitionStoreException` - in case of parsing errors