类 NoneNestedConditions
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.autoconfigure.condition.AbstractNestedCondition
org.springframework.boot.autoconfigure.condition.NoneNestedConditions
- 所有已实现的接口:
Condition
,ConfigurationCondition
Condition
that will match when none of the nested class conditions match. Can
be used to create composite conditions, for example:
static class OnNeitherJndiNorProperty extends NoneNestedConditions { OnNeitherJndiNorProperty() { super(ConfigurationPhase.PARSE_CONFIGURATION); } @ConditionalOnJndi() static class OnJndi { } @ConditionalOnProperty("something") static class OnProperty { } }
The
ConfigurationPhase
should be specified according to the conditions that are defined.
In the example above, all conditions are static and can be evaluated early so
PARSE_CONFIGURATION
is a right fit.
- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.autoconfigure.condition.AbstractNestedCondition
AbstractNestedCondition.MemberMatchOutcomes
从接口继承的嵌套类/接口 org.springframework.context.annotation.ConfigurationCondition
ConfigurationCondition.ConfigurationPhase
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected ConditionOutcome
getFinalMatchOutcome
(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes) 从类继承的方法 org.springframework.boot.autoconfigure.condition.AbstractNestedCondition
getConfigurationPhase, getMatchOutcome
从类继承的方法 org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
-
构造器详细资料
-
NoneNestedConditions
-
-
方法详细资料
-
getFinalMatchOutcome
protected ConditionOutcome getFinalMatchOutcome(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes)
-