接口 ContextCustomizer
- 所有已知实现类:
DuplicateJsonObjectContextCustomizerFactory.DuplicateJsonObjectContextCustomizer,DynamicPropertiesContextCustomizer,ExcludeFilterContextCustomizer,ImportsContextCustomizer,InfraTestArgs,InfraTestWebEnvironment,MockitoContextCustomizer,MockServerContainerContextCustomizer,TestRestTemplateContextCustomizer,WebTestClientContextCustomizer
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Strategy interface for customizing
application contexts that are created and managed by the Infra
TestContext Framework.
Customizers are created by ContextCustomizerFactory implementations.
WARNING: implementations must implement correct
equals and hashCode
methods since customizers form part of the MergedContextConfiguration
which is used as a cache key.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Sam Brannen, Harry Yang
- 另请参阅:
-
方法概要
修饰符和类型方法说明voidcustomizeContext(cn.taketoday.context.ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed.
-
方法详细资料
-
customizeContext
void customizeContext(cn.taketoday.context.ConfigurableApplicationContext context, MergedContextConfiguration mergedConfig) Customize the suppliedConfigurableApplicationContextafter bean definitions have been loaded into the context but before the context has been refreshed.- 参数:
context- the context to customizemergedConfig- the merged context configuration
-