类 SpringBootCondition
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
- 所有已实现的接口:
Condition
- 直接已知子类:
AbstractNestedCondition
,ClientsConfiguredCondition
,IssuerUriCondition
,KeyValueCondition
,MessageSourceAutoConfiguration.ResourceBundleCondition
,OnDatabaseInitializationCondition
,OnEnabledDevToolsCondition
,OnEndpointElementCondition
,OnPropertyListCondition
,ResourceCondition
Base of all
Condition
implementations used with Spring Boot. Provides sensible
logging to help the user diagnose what classes are loaded.- 从以下版本开始:
- 1.0.0
- 作者:
- Phillip Webb, Greg Turnquist
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final boolean
anyMatches
(ConditionContext context, AnnotatedTypeMetadata metadata, Condition... conditions) Return true if any of the specified conditions match.abstract ConditionOutcome
getMatchOutcome
(ConditionContext context, AnnotatedTypeMetadata metadata) Determine the outcome of the match along with suitable log output.protected final void
logOutcome
(String classOrMethodName, ConditionOutcome outcome) final boolean
matches
(ConditionContext context, AnnotatedTypeMetadata metadata) protected final boolean
matches
(ConditionContext context, AnnotatedTypeMetadata metadata, Condition condition) Return true if any of the specified condition matches.
-
构造器详细资料
-
SpringBootCondition
public SpringBootCondition()
-
-
方法详细资料
-
matches
-
logOutcome
-
getMatchOutcome
public abstract ConditionOutcome getMatchOutcome(ConditionContext context, 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(ConditionContext context, AnnotatedTypeMetadata metadata, Condition... conditions) Return true if any of the specified conditions match.- 参数:
context
- the contextmetadata
- the annotation meta-dataconditions
- conditions to test- 返回:
true
if any condition matches.
-
matches
protected final boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata, Condition condition) Return true if any of the specified condition matches.- 参数:
context
- the contextmetadata
- the annotation meta-datacondition
- condition to test- 返回:
true
if the condition matches.
-