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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BeanDefinitionReaderDeprecated.Creates a newPropertiesBeanDefinitionReader.protected StringDeprecated.Returns "-context.properties".protected voidvalidateMergedContextConfiguration(MergedContextConfiguration mergedConfig) Deprecated.Ensure that the suppliedMergedContextConfigurationdoes not containclasses.Methods inherited from class org.springframework.test.context.support.AbstractGenericContextLoader
createContext, customizeBeanFactory, customizeContext, loadBeanDefinitions, loadContext, loadContext, prepareContextMethods 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:
createBeanDefinitionReaderin classAbstractGenericContextLoader- Parameters:
context- the context for which theBeanDefinitionReadershould be created- Returns:
- a new PropertiesBeanDefinitionReader
- See Also:
-
getResourceSuffix
Deprecated.Returns "-context.properties".- Specified by:
getResourceSuffixin classAbstractContextLoader- Returns:
- the resource suffix; never
nullor empty - See Also:
-
validateMergedContextConfiguration
Deprecated.Ensure that the suppliedMergedContextConfigurationdoes not containclasses.- Overrides:
validateMergedContextConfigurationin classAbstractGenericContextLoader- Parameters:
mergedConfig- the merged configuration to validate- Since:
- 4.0.4
- See Also:
-