|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
XmlBeanDefinitionReader.setParserClass(java.lang.Class)
Method Summary | |
void |
registerBeanDefinitions(BeanDefinitionRegistry beanFactory,
java.lang.ClassLoader beanClassLoader,
org.w3c.dom.Document doc,
Resource resource)
Parse bean definitions from the given DOM document, and register them with the given bean factory. |
Method Detail |
public void registerBeanDefinitions(BeanDefinitionRegistry beanFactory, java.lang.ClassLoader beanClassLoader, org.w3c.dom.Document doc, Resource resource) throws BeansException
beanFactory
- the bean factory to register the bean definitions withbeanClassLoader
- class loader to use for bean classes
(null suggests to not load bean classes but just register bean definitions
with class names, for example when just registering beans in a registry
but not actually instantiating them in a factory)doc
- the DOM documentresource
- descriptor of the original XML resource
(useful for displaying parse errors)
BeansException
- in case of parsing errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |