类 SpringBootCondition
- java.lang.Object
- org.springframework.boot.autoconfigure.condition.SpringBootCondition
- 所有已实现的接口:
org.springframework.context.annotation.Condition
- 直接已知子类:
AbstractNestedCondition
,ClientsConfiguredCondition
,IssuerUriCondition
,MessageSourceAutoConfiguration.ResourceBundleCondition
,OnPropertyListCondition
,ResourceCondition
public abstract class SpringBootCondition extends Object implements org.springframework.context.annotation.Condition
Base of allCondition
implementations used with Spring Boot. Provides sensible logging to help the user diagnose what classes are loaded.
构造器概要
构造器 构造器 说明 SpringBootCondition()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected boolean
anyMatches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata, org.springframework.context.annotation.Condition... conditions)
Return true if any of the specified conditions match.abstract ConditionOutcome
getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.protected void
logOutcome(String classOrMethodName, ConditionOutcome outcome)
boolean
matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
protected boolean
matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata, org.springframework.context.annotation.Condition condition)
Return true if any of the specified condition matches.
构造器详细资料
SpringBootCondition
public SpringBootCondition()
方法详细资料
matches
public final boolean matches(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata)
- 指定者:
matches
在接口中org.springframework.context.annotation.Condition
logOutcome
protected final void logOutcome(String classOrMethodName, ConditionOutcome outcome)
getMatchOutcome
public abstract ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.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(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata, org.springframework.context.annotation.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(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata, org.springframework.context.annotation.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.