This class loads a DOM document and applies the bean definition parser to it. The parser will register each bean definition with the given bean factory, relying on the latter's implementation of the BeanDefinitionRegistry interface.
| Fields inherited from org.springframework.beans.factory.supportAbstractBeanDefinitionReader |
|---|
| Constructor Summary |
|---|
|
Create new XmlBeanDefinitionReader for the given bean factory. |
| Method Summary | |
|---|---|
| protected DocumentBuilder |
Create a JAXP DocumentBuilder that this bean definition reader will use for parsing XML documents. |
| protected DocumentBuilderFactory |
Create a JAXP DocumentBuilderFactory that this bean definition reader will use for parsing XML documents. |
| protected int |
Actually load bean definitions from the specified XML file. |
| int |
Load bean definitions from the specified XML file. |
| int |
Load bean definitions from the specified XML file. |
| int |
Load bean definitions from the specified XML file. |
| int |
Load bean definitions from the specified XML file. |
| int |
Register the bean definitions contained in the given DOM document. |
| void |
Set a SAX entity resolver to be used for parsing. |
| void |
Set an implementation of the org.xml.sax.ErrorHandler
interface for custom handling of XML parsing errors and warnings.
|
| void |
Set whether or not the XML parser should be XML namespace aware. |
| void |
Set the XmlBeanDefinitionParser implementation to use, responsible for the actual parsing of XML bean definitions. |
| void |
Set if the XML parser should validate the document and thus enforce a DTD. |
| Methods inherited from org.springframework.beans.factory.supportAbstractBeanDefinitionReader |
|---|
| Methods inherited from org.springframework.beans.factory.supportBeanDefinitionReader |
|---|
| Methods inherited from java.langObject |
|---|
loadBeanDefinitions.
Creates a new instance of the parser class and invokes
registerBeanDefinitions on it.
org.xml.sax.ErrorHandler
interface for custom handling of XML parsing errors and warnings.
If not set, a default SimpleSaxErrorHandler is used that simply logs warnings using the logger instance of the view class, and rethrows errors to discontinue the XML transformation.
public
void
setNamespaceAware
(
boolean
namespaceAware
)
public
void
setValidating
(
boolean
validating
)