接口 BeanDefinitionDocumentReader
public interface BeanDefinitionDocumentReader
SPI for parsing an XML document that contains Spring bean definitions. Used byXmlBeanDefinitionReader
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<?>)
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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 documentreaderContext
- the current context of the reader (includes the target registry and the resource being parsed)- 抛出:
BeanDefinitionStoreException
- in case of parsing errors