public class GenericXmlWebContextLoader extends AbstractGenericWebContextLoader
AbstractGenericWebContextLoader
that loads
bean definitions from XML resources.
Default resource locations are detected using the suffix
"-context.xml"
.
GenericGroovyXmlWebContextLoader
,
AnnotationConfigWebContextLoader
logger
Constructor and Description |
---|
GenericXmlWebContextLoader() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getResourceSuffix()
Returns
"-context.xml" in order to support detection of a
default XML config file. |
protected void |
loadBeanDefinitions(GenericWebApplicationContext context,
WebMergedContextConfiguration webMergedConfig)
Loads bean definitions using an
XmlBeanDefinitionReader . |
protected void |
validateMergedContextConfiguration(WebMergedContextConfiguration webMergedConfig)
Ensure that the supplied
WebMergedContextConfiguration does not
contain classes . |
configureWebResources, customizeBeanFactory, customizeContext, loadContext, loadContext
generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocations
protected void loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig)
XmlBeanDefinitionReader
.loadBeanDefinitions
in class AbstractGenericWebContextLoader
context
- 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 java.lang.String getResourceSuffix()
"-context.xml"
in order to support detection of a
default XML config file.getResourceSuffix
in class AbstractContextLoader
null
or emptyAbstractContextLoader.generateDefaultLocations(Class)
,
AbstractContextLoader.getResourceSuffixes()
protected void validateMergedContextConfiguration(WebMergedContextConfiguration webMergedConfig)
WebMergedContextConfiguration
does not
contain classes
.validateMergedContextConfiguration
in class AbstractGenericWebContextLoader
webMergedConfig
- the merged configuration to validateAbstractGenericWebContextLoader.validateMergedContextConfiguration(org.springframework.test.context.web.WebMergedContextConfiguration)