spring-framework / org.springframework.context.annotation / ConfigurationCondition

ConfigurationCondition

interface ConfigurationCondition : Condition

A Condition that offers more fine-grained control when used with @Configuration. Allows certain Conditions to adapt when they match based on the configuration phase. For example, a condition that checks if a bean has already been registered might choose to only be evaluated during the REGISTER_BEAN ConfigurationPhase.

Author
Phillip Webb

Since
4.0

See Also
Configuration

Functions

getConfigurationPhase

abstract fun getConfigurationPhase(): ConfigurationPhase

Return the ConfigurationPhase in which the condition should be evaluated.