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 registry in the given reader context.
|
void |
setEnvironment(Environment environment)
Deprecated.
in favor of
XmlReaderContext.getEnvironment() |
@Deprecated void setEnvironment(Environment environment)
XmlReaderContext.getEnvironment()
Used for evaluating profile information to determine whether a
<beans/>
document/element should be included or ignored.
void registerBeanDefinitions(Document doc, XmlReaderContext readerContext) throws BeanDefinitionStoreException
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