org.springframework.test.context.support
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
public class GenericPropertiesContextLoader
- extends AbstractGenericContextLoader
Concrete implementation of AbstractGenericContextLoader
which reads
bean definitions from Java Properties
resources.
- Since:
- 2.5
- Author:
- Sam Brannen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericPropertiesContextLoader
public GenericPropertiesContextLoader()
createBeanDefinitionReader
protected BeanDefinitionReader createBeanDefinitionReader(GenericApplicationContext context)
Creates a new PropertiesBeanDefinitionReader
.
- Specified by:
createBeanDefinitionReader
in class AbstractGenericContextLoader
- Parameters:
context
- the context for which the BeanDefinitionReader should be created
- Returns:
- a new PropertiesBeanDefinitionReader.
- See Also:
AbstractGenericContextLoader.createBeanDefinitionReader(GenericApplicationContext)
,
PropertiesBeanDefinitionReader
getResourceSuffix
public String getResourceSuffix()
- Returns "
-context.properties
".
- Specified by:
getResourceSuffix
in class AbstractContextLoader
- Returns:
- the resource suffix; should not be
null
or empty - See Also:
AbstractContextLoader.getResourceSuffix()