接口 Condition

所有已知子接口:
ConfigurationCondition
所有已知实现类:
AbstractNestedCondition, AllNestedConditions, AnyNestedCondition, ContextCondition, FilteringContextCondition, NeverMatchedCondition, NoneNestedConditions, OnPropertyListCondition, ResourceCondition
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface Condition
A single condition that must be matched in order for a component to be registered.

Conditions are checked immediately before the bean-definition is due to be registered and are free to veto registration based on any criteria that can be determined at that point.

作者:
TODAY 2018-11-10 13:44
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    matches(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata)
    Determine if the condition matches.
  • 方法详细资料

    • matches

      boolean matches(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata)
      Determine if the condition matches.
      参数:
      context - ConditionEvaluationContext
      metadata - the metadata of the class * or method being checked
      返回:
      Return false to indicate that the bean should not be * registered
      从以下版本开始:
      4.0