类 ContextCondition
java.lang.Object
cn.taketoday.context.condition.ContextCondition
- 所有已实现的接口:
Condition
- 直接已知子类:
AbstractNestedCondition,FilteringContextCondition,OnPropertyListCondition,ResourceCondition
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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final booleananyMatches(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata, Condition... conditions) Return true if any of the specified conditions match.abstract ConditionOutcomegetMatchOutcome(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata) Determine the outcome of the match along with suitable log output.protected final voidlogOutcome(String classOrMethodName, ConditionOutcome outcome) booleanmatches(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata) Determine if the condition matches.protected final booleanmatches(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata, Condition condition) Return true if any of the specified condition matches.
-
构造器详细资料
-
ContextCondition
public ContextCondition()
-
-
方法详细资料
-
matches
public boolean matches(ConditionEvaluationContext context, cn.taketoday.core.type.AnnotatedTypeMetadata metadata) 从接口复制的说明:ConditionDetermine if the condition matches. -
logOutcome
-
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 contextmetadata- 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 contextmetadata- the annotation meta-dataconditions- conditions to test- 返回:
trueif 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 contextmetadata- the annotation meta-datacondition- condition to test- 返回:
trueif the condition matches.
-