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:
-
ApplicationContext
ConfigurableApplicationContext
AnnotationConfigRegistry
RefreshableAnnotationConfigApplicationContext
ContextConfigurationAttributes
MergedContextConfiguration
TestContext
AbstractContextLoader
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
org.springframework.context.ApplicationContext
loadContext
(String... locations) org.springframework.context.ApplicationContext
loadContext
(org.springframework.test.context.MergedContextConfiguration mergedConfig) protected org.springframework.context.ConfigurableApplicationContext
newApplicationContext
(org.springframework.test.context.MergedContextConfiguration contextConfiguration) Constructs a new instance of theRefreshableAnnotationConfigApplicationContext
initialized from the given {TestContext
@link MergedContextConfiguration merged configuration meta-data}.void
processContextConfiguration
(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:
processContextConfiguration
in interfaceorg.springframework.test.context.SmartContextLoader
- Overrides:
processContextConfiguration
in 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 theRefreshableAnnotationConfigApplicationContext
initialized from the given {TestContext
@link MergedContextConfiguration merged configuration meta-data}.- Parameters:
contextConfiguration
-MergedContextConfiguration
from theTestContext
used to configure and bootstrap a newRefreshableAnnotationConfigApplicationContext
.- Returns:
- a configured and bootstrapped
ConfigurableApplicationContext
implementation. - See Also:
-
ConfigurableApplicationContext
RefreshableAnnotationConfigApplicationContext
MergedContextConfiguration
AbstractContextLoader.prepareContext(ConfigurableApplicationContext, MergedContextConfiguration)
-
loadContext
-
getResourceSuffix
- Specified by:
getResourceSuffix
in classorg.springframework.test.context.support.AbstractContextLoader
-