Class GenericXmlWebContextLoader
java.lang.Object
org.springframework.test.context.support.AbstractContextLoader
org.springframework.test.context.web.AbstractGenericWebContextLoader
org.springframework.test.context.web.GenericXmlWebContextLoader
- All Implemented Interfaces:
- AotContextLoader, ContextLoader, SmartContextLoader
- Direct Known Subclasses:
- GenericGroovyXmlWebContextLoader
Concrete implementation of 
AbstractGenericWebContextLoader that loads
bean definitions from XML resources.
Default resource locations are detected using the suffix
"-context.xml".
- Since:
- 3.2
- Author:
- Sam Brannen
- See Also:
- 
Field SummaryFields inherited from class AbstractGenericWebContextLoaderlogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringReturns"-context.xml"in order to support detection of a default XML config file.protected voidloadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig) Load bean definitions into the suppliedcontextfrom the locations in the suppliedWebMergedContextConfiguration, using anXmlBeanDefinitionReader.protected voidvalidateMergedContextConfiguration(WebMergedContextConfiguration webMergedConfig) Ensure that the suppliedWebMergedContextConfigurationdoes not containclasses.Methods inherited from class AbstractGenericWebContextLoaderconfigureWebResources, createContext, customizeBeanFactory, customizeContext, loadContext, loadContext, loadContextForAotProcessing, loadContextForAotProcessing, loadContextForAotRuntimeMethods inherited from class AbstractContextLoadercustomizeContext, generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocationsMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SmartContextLoaderprocessContextConfiguration, processLocations
- 
Constructor Details- 
GenericXmlWebContextLoaderpublic GenericXmlWebContextLoader()
 
- 
- 
Method Details- 
loadBeanDefinitionsprotected void loadBeanDefinitions(GenericWebApplicationContext context, WebMergedContextConfiguration webMergedConfig) Load bean definitions into the suppliedcontextfrom the locations in the suppliedWebMergedContextConfiguration, using anXmlBeanDefinitionReader.- Specified by:
- loadBeanDefinitionsin class- AbstractGenericWebContextLoader
- Parameters:
- context- the context into which the bean definitions should be loaded
- webMergedConfig- the merged context configuration to use to load the web application context
- See Also:
 
- 
getResourceSuffixReturns"-context.xml"in order to support detection of a default XML config file.- Specified by:
- getResourceSuffixin class- AbstractContextLoader
- Returns:
- the resource suffix; never nullor empty
- See Also:
 
- 
validateMergedContextConfigurationEnsure that the suppliedWebMergedContextConfigurationdoes not containclasses.- Overrides:
- validateMergedContextConfigurationin class- AbstractGenericWebContextLoader
- Parameters:
- webMergedConfig- the merged configuration to validate
- Since:
- 4.0.4
- See Also:
 
 
-