类 AllNestedConditions
- java.lang.Object
- org.springframework.boot.autoconfigure.condition.SpringBootCondition
- org.springframework.boot.autoconfigure.condition.AbstractNestedCondition
- org.springframework.boot.autoconfigure.condition.AllNestedConditions
- 所有已实现的接口:
org.springframework.context.annotation.Condition
,org.springframework.context.annotation.ConfigurationCondition
public abstract class AllNestedConditions extends AbstractNestedCondition
Condition
that will match when all nested class conditions match. Can be used to create composite conditions, for example:static class OnJndiAndProperty extends AllNestedConditions { OnJndiAndProperty() { 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 soPARSE_CONFIGURATION
is a right fit.- 从以下版本开始:
- 1.3.0
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.autoconfigure.condition.AbstractNestedCondition
AbstractNestedCondition.MemberMatchOutcomes
构造器概要
构造器 构造器 说明 AllNestedConditions(org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase 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
构造器详细资料
AllNestedConditions
public AllNestedConditions(org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase configurationPhase)
方法详细资料
getFinalMatchOutcome
protected ConditionOutcome getFinalMatchOutcome(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes)