Class TestRefreshableApplicationContextLoader
java.lang.Object
org.springframework.test.context.support.AbstractContextLoader
org.springframework.geode.test.context.TestRefreshableApplicationContextLoader
- All Implemented Interfaces:
org.springframework.test.context.ContextLoader,org.springframework.test.context.SmartContextLoader
public class TestRefreshableApplicationContextLoader
extends org.springframework.test.context.support.AbstractContextLoader
An
AbstractContextLoader from the Spring TestContext Framework used to load
a RefreshableAnnotationConfigApplicationContext.- Since:
- 1.3.0
- See Also:
-
ApplicationContextConfigurableApplicationContextAnnotationConfigRegistryRefreshableAnnotationConfigApplicationContextContextConfigurationAttributesMergedContextConfigurationTestContextAbstractContextLoader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringorg.springframework.context.ApplicationContextloadContext(String... locations) org.springframework.context.ApplicationContextloadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig) protected org.springframework.context.ConfigurableApplicationContextnewApplicationContext(org.springframework.test.context.MergedContextConfiguration contextConfiguration) Constructs a new instance of theRefreshableAnnotationConfigApplicationContextinitialized from the given {TestContext@link MergedContextConfiguration merged configuration meta-data}.voidprocessContextConfiguration(org.springframework.test.context.ContextConfigurationAttributes configAttributes) Methods inherited from class org.springframework.test.context.support.AbstractContextLoader
customizeContext, generateDefaultLocations, getResourceSuffixes, isGenerateDefaultLocations, modifyLocations, prepareContext, processLocations
-
Field Details
-
DEFAULT_RESOURCE_SUFFIX
- See Also:
-
-
Constructor Details
-
TestRefreshableApplicationContextLoader
public TestRefreshableApplicationContextLoader()
-
-
Method Details
-
processContextConfiguration
public void processContextConfiguration(org.springframework.test.context.ContextConfigurationAttributes configAttributes) - Specified by:
processContextConfigurationin interfaceorg.springframework.test.context.SmartContextLoader- Overrides:
processContextConfigurationin classorg.springframework.test.context.support.AbstractContextLoader
-
loadContext
public org.springframework.context.ApplicationContext loadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig) -
newApplicationContext
protected org.springframework.context.ConfigurableApplicationContext newApplicationContext(org.springframework.test.context.MergedContextConfiguration contextConfiguration) Constructs a new instance of theRefreshableAnnotationConfigApplicationContextinitialized from the given {TestContext@link MergedContextConfiguration merged configuration meta-data}.- Parameters:
contextConfiguration-MergedContextConfigurationfrom theTestContextused to configure and bootstrap a newRefreshableAnnotationConfigApplicationContext.- Returns:
- a configured and bootstrapped
ConfigurableApplicationContextimplementation. - See Also:
-
ConfigurableApplicationContextRefreshableAnnotationConfigApplicationContextMergedContextConfigurationAbstractContextLoader.prepareContext(ConfigurableApplicationContext, MergedContextConfiguration)
-
loadContext
-
getResourceSuffix
- Specified by:
getResourceSuffixin classorg.springframework.test.context.support.AbstractContextLoader
-