Class ConditionOnProperty<T>

  • All Implemented Interfaces:
    org.springframework.context.annotation.Condition, org.springframework.context.annotation.ConfigurationCondition
    Direct Known Subclasses:
    ConditionOnPropertyFalse, ConditionOnPropertyTrue

    public abstract class ConditionOnProperty<T>
    extends Object
    implements org.springframework.context.annotation.ConfigurationCondition
    This condition enables a bean/configuration when the specified property matches the expected value Implementations must provide a no-arg constructor.
    Author:
    pwinckles
    • Method Detail

      • matches

        public boolean matches​(org.springframework.context.annotation.ConditionContext context,
                               org.springframework.core.type.AnnotatedTypeMetadata metadata)
        Specified by:
        matches in interface org.springframework.context.annotation.Condition
      • getConfigurationPhase

        public org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
        Specified by:
        getConfigurationPhase in interface org.springframework.context.annotation.ConfigurationCondition