| org.springframework.beans.factory.xml.XmlBeanDefinitionParser
XmlBeanDefinitionParser | public interface XmlBeanDefinitionParser (Code) | | Strategy interface for parsing XML 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.
author: Juergen Hoeller since: 18.12.2003 See Also: BeanDefinitionDocumentReader See Also: XmlBeanDefinitionReader.setParserClass |
Method Summary | |
int | registerBeanDefinitions(BeanDefinitionReader reader, Document doc, Resource resource) Parse bean definitions from the given DOM document,
and register them with the given bean factory.
Parameters: reader - the bean definition reader, containing the bean factoryto work on and the bean class loader to use. |
registerBeanDefinitions | int registerBeanDefinitions(BeanDefinitionReader reader, Document doc, Resource resource) throws BeanDefinitionStoreException(Code) | | Parse bean definitions from the given DOM document,
and register them with the given bean factory.
Parameters: reader - the bean definition reader, containing the bean factoryto work on and the bean class loader to use. Can also be used to loadfurther bean definition files referenced by the given document. Parameters: doc - the DOM document Parameters: resource - descriptor of the original XML resource(useful for displaying parse errors) the number of bean definitions found throws: BeanDefinitionStoreException - in case of parsing errors |
|
|