org.springframework.boot.autoconfigure.condition

Class SpringBootCondition

  • java.lang.Object
    • org.springframework.boot.autoconfigure.condition.SpringBootCondition
    • Constructor Detail

      • SpringBootCondition

        public SpringBootCondition()
    • Method Detail

      • getMatchOutcome

        public abstract ConditionOutcome getMatchOutcome(ConditionContext context,
                                                         AnnotatedTypeMetadata metadata)
        Determine the outcome of the match along with suitable log output.
        Parameters:
        context - the condition context
        metadata - the annotation metadata
        Returns:
        the condition outcome
      • anyMatches

        protected final boolean anyMatches(ConditionContext context,
                                           AnnotatedTypeMetadata metadata,
                                           Condition... conditions)
        Return true if any of the specified conditions match.
        Parameters:
        context - the context
        metadata - the annotation meta-data
        conditions - conditions to test
        Returns:
        true if any condition matches.
      • matches

        protected final boolean matches(ConditionContext context,
                                        AnnotatedTypeMetadata metadata,
                                        Condition condition)
        Return true if any of the specified condition matches.
        Parameters:
        context - the context
        metadata - the annotation meta-data
        condition - condition to test
        Returns:
        true if the condition matches.