类 ContextCondition

java.lang.Object
cn.taketoday.context.condition.ContextCondition
所有已实现的接口:
Condition
直接已知子类:
AbstractNestedCondition, FilteringContextCondition, OnPropertyListCondition, ResourceCondition

public abstract class ContextCondition extends Object implements Condition
Base of all Condition implementations used with Framework. Provides sensible logging to help the user diagnose what classes are loaded.
从以下版本开始:
4.0 2022/1/16 15:46
作者:
Phillip Webb, Greg Turnquist, Harry Yang
  • 构造器详细资料

    • ContextCondition

      public ContextCondition()
  • 方法详细资料

    • matches

      public boolean matches(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata)
      从接口复制的说明: Condition
      Determine if the condition matches.
      指定者:
      matches 在接口中 Condition
      参数:
      context - ConditionEvaluationContext
      metadata - the metadata of the class * or method being checked
      返回:
      Return false to indicate that the bean should not be * registered
    • logOutcome

      protected final void logOutcome(String classOrMethodName, ConditionOutcome outcome)
    • getMatchOutcome

      public abstract ConditionOutcome getMatchOutcome(ConditionEvaluationContext context, cn.taketoday.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(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata, 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(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata, 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.