| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.springframework.beans.factory.support.AbstractBeanDefinitionReader | +--org.springframework.beans.factory.xml.XmlBeanDefinitionReader
Bean definition reader for Spring's default XML bean definition format. Typically applied to a DefaultListableBeanFactory.
The structure, element and attribute names of the required XML document are hard-coded in this class. (Of course a transform could be run if necessary to produce this format). "beans" doesn't need to be the root element of the XML document: This class will parse all bean definition elements in the XML file.
This class registers each bean definition with the given bean factory superclass, and relies on the latter's implementation of the BeanDefinitionRegistry interface. It supports singletons, prototypes, and references to either of these kinds of bean.
Constructor Summary | |
XmlBeanDefinitionReader(BeanDefinitionRegistry beanFactory) Create new XmlBeanDefinitionReader for the given bean factory. |
Method Summary | |
void | loadBeanDefinitions(Resource resource) Load bean definitions from the specified XML file. |
void | registerBeanDefinitions(Document doc, Resource resource) Register the bean definitions contained in the given DOM document. |
void | setEntityResolver(EntityResolver entityResolver) Set a SAX entity resolver to be used for parsing. |
void | setParserClass(Class parserClass) Set the XmlBeanDefinitionParser implementation to use. |
void | setValidating(boolean validating) Set if the XML parser should validate the document and thus enforce a DTD. |
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanDefinitionReader |
getBeanClassLoader, getBeanFactory, setBeanClassLoader |
Constructor Detail |
public XmlBeanDefinitionReader(BeanDefinitionRegistry beanFactory)
Method Detail |
public void loadBeanDefinitions(Resource resource)
throws org.springframework.beans.BeansException
public void registerBeanDefinitions(Document doc, Resource resource)
throws org.springframework.beans.BeansException
public void setEntityResolver(EntityResolver entityResolver)
public void setParserClass(Class parserClass)
public void setValidating(boolean validating)
Association Links |
to Class java.lang.Class
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |