Package org.springframework.test.context
Interface ContextCustomizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface for customizing 
application contexts that are created and managed by the Spring
 TestContext Framework.
 Customizers are created by ContextCustomizerFactory implementations.
 
Implementations must implement correct equals and hashCode
 methods since customizers form part of the MergedContextConfiguration
 which is used as a cache key.
- Since:
- 4.3
- Author:
- Phillip Webb, Sam Brannen
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidcustomizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed.
- 
Method Details- 
customizeContextvoid customizeContext(ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed.- Parameters:
- context- the context to customize
- mergedConfig- the merged context configuration
 
 
-