org.springframework.context.annotation

## Interface ConfigurationCondition

- All Superinterfaces:
    Condition

      public interface ConfigurationCondition
      extends Condition

  A `Condition` that offers more fine-grained control when used with `@Configuration`. Allows certain `Condition`s 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` `ConfigurationCondition.ConfigurationPhase`.
  Since:
    4.0
  Author:
    Phillip Webb

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `ConfigurationCondition.ConfigurationPhase` The various configuration phases where the condition could be evaluated.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ConfigurationCondition.ConfigurationPhase` | `getConfigurationPhase()` Returns the `ConfigurationCondition.ConfigurationPhase` in which the condition should be evaluated.

    - ### Methods inherited from interface org.springframework.context.annotation.Condition

      `matches`

- - ### Method Detail

    - #### getConfigurationPhase

          ConfigurationCondition.ConfigurationPhase getConfigurationPhase()

      Returns the `ConfigurationCondition.ConfigurationPhase` in which the condition should be evaluated.