接口 Condition
- 所有已知子接口:
ConfigurationCondition
- 所有已知实现类:
AbstractNestedCondition,AllNestedConditions,AnyNestedCondition,ContextCondition,FilteringContextCondition,NeverMatchedCondition,NoneNestedConditions,OnPropertyListCondition,ResourceCondition
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
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
- 另请参阅:
-
方法概要
修饰符和类型方法说明booleanmatches(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- ConditionEvaluationContextmetadata- the metadata of theclass* ormethodbeing checked- 返回:
- Return
falseto indicate that the bean should not be * registered - 从以下版本开始:
- 4.0
-