public interface BeanDefinitionDocumentReader
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.
XmlBeanDefinitionReader.setDocumentReaderClass(java.lang.Class<?>)
Modifier and Type | Method and Description |
---|---|
void |
registerBeanDefinitions(Document doc,
XmlReaderContext readerContext)
Read bean definitions from the given DOM document,
and register them with the given bean factory.
|
void |
setEnvironment(Environment environment)
Set the Environment to use when reading bean definitions.
|
void registerBeanDefinitions(Document doc, XmlReaderContext readerContext) throws BeanDefinitionStoreException
doc
- the DOM documentreaderContext
- the current context of the reader. Includes the resource being parsedBeanDefinitionStoreException
- in case of parsing errorsvoid setEnvironment(Environment environment)
<beans/>
document/element should
be included or omitted.