org.springframework.context.ApplicationContext
implementations, drawing configuration from XML documents containing bean definitions
understood by an org.springframework.beans.factory.xml.XmlBeanDefinitionReader .
Subclasses just have to implement the getConfigResources and/or
the getConfigLocations method. Furthermore, they might override
the getResourceByPath hook to interpret relative paths in an
environment-specific fashion, and/or getResourcePatternResolver
for extended pattern resolution.
getConfigResources, getConfigLocations, org.springframework.beans.factory.xml.XmlBeanDefinitionReader
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AbstractXmlApplicationContext(ApplicationContext
the parent context parent)Create a new AbstractXmlApplicationContext with the given parent context. |
| Modifier and Type | Method and Description |
|---|---|
| protected Resource[] | Returns: an array of Resource objects, ornull if noneReturn an array of Resource objects, referring to the XML bean definition files that this context should be built with. |
| protected void | initBeanDefinitionReader(XmlBeanDefinitionReader
the bean definition reader used by this context reader)Initialize the bean definition reader used for loading the bean definitions of this context. |
| protected void | loadBeanDefinitions(DefaultListableBeanFactory
the bean factory to load bean definitions into beanFactory)Implements abstract org. Loads the bean definitions via an XmlBeanDefinitionReader. |
| protected void | loadBeanDefinitions(XmlBeanDefinitionReader
the XmlBeanDefinitionReader to use reader)Load the bean definitions with the given XmlBeanDefinitionReader. |
| public void |
| validating | back to summary |
|---|---|
| private boolean validating | |
| AbstractXmlApplicationContext | back to summary |
|---|---|
| public AbstractXmlApplicationContext() Create a new AbstractXmlApplicationContext with no parent. | |
| AbstractXmlApplicationContext | back to summary |
|---|---|
| public AbstractXmlApplicationContext(ApplicationContext parent) Create a new AbstractXmlApplicationContext with the given parent context.
| |
| getConfigResources | back to summary |
|---|---|
| protected Resource[] getConfigResources() Return an array of Resource objects, referring to the XML bean definition files that this context should be built with. The default implementation returns
| |
| initBeanDefinitionReader | back to summary |
|---|---|
| protected void initBeanDefinitionReader(XmlBeanDefinitionReader reader) Initialize the bean definition reader used for loading the bean definitions of this context. The default implementation sets the validating flag. Can be overridden in subclasses, e.g. for turning off XML validation
or using a different
| |
| loadBeanDefinitions | back to summary |
|---|---|
| protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) throws BeansException, IOException Implements abstract org. Loads the bean definitions via an XmlBeanDefinitionReader.
| |
| loadBeanDefinitions | back to summary |
|---|---|
| protected void loadBeanDefinitions(XmlBeanDefinitionReader reader) throws BeansException, IOException Load the bean definitions with the given XmlBeanDefinitionReader. The lifecycle of the bean factory is handled by the
| |
| setValidating | back to summary |
|---|---|
| public void setValidating(boolean validating) Set whether to use XML validation. Default is | |