Class GenericXmlContextLoader
java.lang.Object
org.springframework.test.context.support.AbstractContextLoader
org.springframework.test.context.support.AbstractGenericContextLoader
org.springframework.test.context.support.GenericXmlContextLoader
- All Implemented Interfaces:
- AotContextLoader,- ContextLoader,- SmartContextLoader
- Direct Known Subclasses:
- GenericGroovyXmlContextLoader
Concrete implementation of 
AbstractGenericContextLoader that reads
 bean definitions from XML resources.
 Default resource locations are detected using the suffix
 "-context.xml".
- Since:
- 2.5
- Author:
- Sam Brannen
- See Also:
- 
Field SummaryFields inherited from class org.springframework.test.context.support.AbstractGenericContextLoaderlogger
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected BeanDefinitionReaderCreate a newXmlBeanDefinitionReader.protected StringReturns"-context.xml"in order to support detection of a default XML config file.protected voidvalidateMergedContextConfiguration(MergedContextConfiguration mergedConfig) Ensure that the suppliedMergedContextConfigurationdoes not containclasses.Methods inherited from class org.springframework.test.context.support.AbstractGenericContextLoadercreateContext, customizeBeanFactory, customizeContext, loadBeanDefinitions, loadContext, loadContext, loadContextForAotProcessing, loadContextForAotRuntime, prepareContextMethods inherited from class org.springframework.test.context.support.AbstractContextLoadercustomizeContext, generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocationsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.test.context.SmartContextLoaderprocessContextConfiguration, processLocations
- 
Constructor Details- 
GenericXmlContextLoaderpublic GenericXmlContextLoader()
 
- 
- 
Method Details- 
createBeanDefinitionReaderCreate a newXmlBeanDefinitionReader.- Specified by:
- createBeanDefinitionReaderin class- AbstractGenericContextLoader
- Parameters:
- context- the context for which the- BeanDefinitionReadershould be created
- Returns:
- a new XmlBeanDefinitionReader
- 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 suppliedMergedContextConfigurationdoes not containclasses.- Overrides:
- validateMergedContextConfigurationin class- AbstractGenericContextLoader
- Parameters:
- mergedConfig- the merged configuration to validate
- Since:
- 4.0.4
- See Also:
 
 
-