public class GenericXmlWebContextLoader extends AbstractGenericWebContextLoader
AbstractGenericWebContextLoader that loads
bean definitions from XML resources.
Default resource locations are detected using the suffix
"-context.xml".
GenericGroovyXmlWebContextLoader,
AnnotationConfigWebContextLoaderlogger| Constructor and Description |
|---|
GenericXmlWebContextLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getResourceSuffix()
Returns
"-context.xml" in order to support detection of a
default XML config file. |
protected void |
loadBeanDefinitions(org.springframework.web.context.support.GenericWebApplicationContext context,
WebMergedContextConfiguration webMergedConfig)
Load bean definitions into the supplied
context
from the locations in the supplied WebMergedContextConfiguration, using an
XmlBeanDefinitionReader. |
protected void |
validateMergedContextConfiguration(WebMergedContextConfiguration webMergedConfig)
Ensure that the supplied
WebMergedContextConfiguration does not
contain classes. |
configureWebResources, customizeBeanFactory, customizeContext, loadContext, loadContextgenerateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocationsprotected void loadBeanDefinitions(org.springframework.web.context.support.GenericWebApplicationContext context,
WebMergedContextConfiguration webMergedConfig)
context
from the locations in the supplied WebMergedContextConfiguration, using an
XmlBeanDefinitionReader.loadBeanDefinitions in class AbstractGenericWebContextLoadercontext - the context into which the bean definitions should be loadedwebMergedConfig - the merged context configuration to use to load the
web application contextAbstractGenericWebContextLoader.loadBeanDefinitions(org.springframework.web.context.support.GenericWebApplicationContext, org.springframework.test.context.web.WebMergedContextConfiguration)protected String getResourceSuffix()
"-context.xml" in order to support detection of a
default XML config file.getResourceSuffix in class AbstractContextLoadernull or emptyAbstractContextLoader.generateDefaultLocations(Class),
AbstractContextLoader.getResourceSuffixes()protected void validateMergedContextConfiguration(WebMergedContextConfiguration webMergedConfig)
WebMergedContextConfiguration does not
contain classes.validateMergedContextConfiguration in class AbstractGenericWebContextLoaderwebMergedConfig - the merged configuration to validateAbstractGenericWebContextLoader.validateMergedContextConfiguration(org.springframework.test.context.web.WebMergedContextConfiguration)