Class SpringBootCondition

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected booleananyMatches​(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata, org.springframework.context.annotation.Condition... conditions)
      Return true if any of the specified conditions match.
      abstract ConditionOutcomegetMatchOutcome​(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
      Determine the outcome of the match along with suitable log output.
      protected voidlogOutcome​(String classOrMethodName, ConditionOutcome outcome) 
      booleanmatches​(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata) 
      protected booleanmatches​(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata, org.springframework.context.annotation.Condition condition)
      Return true if any of the specified condition matches.
    • Method Detail

      • matches

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

        public abstract ConditionOutcome getMatchOutcome​(org.springframework.context.annotation.ConditionContext context,
                                                         org.springframework.core.type.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​(org.springframework.context.annotation.ConditionContext context,
                                           org.springframework.core.type.AnnotatedTypeMetadata metadata,
                                           org.springframework.context.annotation.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​(org.springframework.context.annotation.ConditionContext context,
                                        org.springframework.core.type.AnnotatedTypeMetadata metadata,
                                        org.springframework.context.annotation.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.