public class GenericXmlContextLoader extends AbstractGenericContextLoader
AbstractGenericContextLoader that reads
bean definitions from XML resources.
Default resource locations are detected using the suffix
"-context.xml".
XmlBeanDefinitionReader,
GenericGroovyXmlContextLoader,
AnnotationConfigContextLoaderlogger| Constructor and Description |
|---|
GenericXmlContextLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected BeanDefinitionReader |
createBeanDefinitionReader(GenericApplicationContext context)
Create a new
XmlBeanDefinitionReader. |
protected String |
getResourceSuffix()
Returns
"-context.xml" in order to support detection of a
default XML config file. |
protected void |
validateMergedContextConfiguration(MergedContextConfiguration mergedConfig)
Ensure that the supplied
MergedContextConfiguration does not
contain classes. |
createContext, customizeBeanFactory, customizeContext, loadBeanDefinitions, loadContext, loadContext, prepareContextcustomizeContext, generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocationsprotected BeanDefinitionReader createBeanDefinitionReader(GenericApplicationContext context)
XmlBeanDefinitionReader.createBeanDefinitionReader in class AbstractGenericContextLoadercontext - the context for which the BeanDefinitionReader
should be createdXmlBeanDefinitionReaderAbstractGenericContextLoader.loadContext(String...),
AbstractGenericContextLoader.loadBeanDefinitions(org.springframework.context.support.GenericApplicationContext, org.springframework.test.context.MergedContextConfiguration),
BeanDefinitionReaderprotected 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(MergedContextConfiguration mergedConfig)
MergedContextConfiguration does not
contain classes.validateMergedContextConfiguration in class AbstractGenericContextLoadermergedConfig - the merged configuration to validateAbstractGenericContextLoader.validateMergedContextConfiguration(org.springframework.test.context.MergedContextConfiguration)