类 SpringBootCondition

    • 方法概要

      所有方法 实例方法 抽象方法 具体方法 
      修饰符和类型方法说明
      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.
    • 方法详细资料

      • matches

        public final boolean matches​(org.springframework.context.annotation.ConditionContext context,
                                     org.springframework.core.type.AnnotatedTypeMetadata metadata)
        指定者:
        matches 在接口中 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.
        参数:
        context - the condition context
        metadata - the annotation metadata
        返回:
        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.
        参数:
        context - the context
        metadata - the annotation meta-data
        conditions - conditions to test
        返回:
        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.
        参数:
        context - the context
        metadata - the annotation meta-data
        condition - condition to test
        返回:
        true if the condition matches.