Package dev.hilla

Class FeatureFlagCondition

  • All Implemented Interfaces:
    org.springframework.context.annotation.Condition

    public class FeatureFlagCondition
    extends Object
    implements org.springframework.context.annotation.Condition
    Checks if a given feature flag, defined using ConditionalOnFeatureFlag, is enabled.
    • Constructor Detail

      • FeatureFlagCondition

        public FeatureFlagCondition()
    • 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