Class GenericPropertiesContextLoader
java.lang.Object
org.springframework.test.context.support.AbstractContextLoader
org.springframework.test.context.support.AbstractGenericContextLoader
org.springframework.test.context.support.GenericPropertiesContextLoader
- All Implemented Interfaces:
ContextLoader
,SmartContextLoader
Deprecated.
as of 5.3, in favor of Spring's common bean definition formats
and/or custom loader implementations
Concrete implementation of
AbstractGenericContextLoader
that reads
bean definitions from Java Properties
resources.- Since:
- 2.5
- Author:
- Sam Brannen
-
Field Summary
Fields inherited from class org.springframework.test.context.support.AbstractGenericContextLoader
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BeanDefinitionReader
Deprecated.Creates a newPropertiesBeanDefinitionReader
.protected String
Deprecated.Returns "-context.properties
".protected void
validateMergedContextConfiguration
(MergedContextConfiguration mergedConfig) Deprecated.Ensure that the suppliedMergedContextConfiguration
does not containclasses
.Methods inherited from class org.springframework.test.context.support.AbstractGenericContextLoader
createContext, customizeBeanFactory, customizeContext, loadBeanDefinitions, loadContext, loadContext, prepareContext
Methods inherited from class org.springframework.test.context.support.AbstractContextLoader
customizeContext, generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processContextConfiguration, processLocations
-
Constructor Details
-
GenericPropertiesContextLoader
public GenericPropertiesContextLoader()Deprecated.
-
-
Method Details
-
createBeanDefinitionReader
Deprecated.Creates a newPropertiesBeanDefinitionReader
.- Specified by:
createBeanDefinitionReader
in classAbstractGenericContextLoader
- Parameters:
context
- the context for which theBeanDefinitionReader
should be created- Returns:
- a new PropertiesBeanDefinitionReader
- See Also:
-
getResourceSuffix
Deprecated.Returns "-context.properties
".- Specified by:
getResourceSuffix
in classAbstractContextLoader
- Returns:
- the resource suffix; never
null
or empty - See Also:
-
validateMergedContextConfiguration
Deprecated.Ensure that the suppliedMergedContextConfiguration
does not containclasses
.- Overrides:
validateMergedContextConfiguration
in classAbstractGenericContextLoader
- Parameters:
mergedConfig
- the merged configuration to validate- Since:
- 4.0.4
- See Also:
-