public class GenericXmlWebContextLoader extends AbstractGenericWebContextLoader
AbstractGenericWebContextLoader
that loads
bean definitions from XML resources.logger
Constructor and Description |
---|
GenericXmlWebContextLoader() |
Modifier and Type | Method and Description |
---|---|
protected String |
getResourceSuffix()
Returns "
-context.xml ". |
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, 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 String getResourceSuffix()
-context.xml
".getResourceSuffix
in class AbstractContextLoader
null
or emptyAbstractContextLoader.generateDefaultLocations(Class)
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)