Top Description Methods
org.springframework.beans.factory.xml

public Interface BeanDefinitionDocumentReader

Known Direct Implementers
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
Imports
org.w3c.dom.Document, org.springframework.beans.factory.BeanDefinitionStoreException

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.

Authors
Juergen Hoeller, Rob Harrop
Since
18.12.2003
See Also
XmlBeanDefinitionReader#setDocumentReaderClass

Method Summary

Modifier and TypeMethod and Description
public void
registerBeanDefinitions(Document
the DOM document
doc
,
XmlReaderContext
the current context of the reader (includes the target registry and the resource being parsed)
readerContext
)

Read bean definitions from the given DOM document and register them with the registry in the given reader context.

Method Detail

registerBeanDefinitionsback to summary
public 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.

Parameters
doc:Document

the DOM document

readerContext:XmlReaderContext

the current context of the reader (includes the target registry and the resource being parsed)

Exceptions
BeanDefinitionStoreException:
in case of parsing errors