public abstract class AllNestedConditions extends AbstractNestedCondition
Condition。複合条件の作成に使用できます。例:
static class OnJndiAndProperty extends AllNestedConditions {
OnJndiAndProperty() {
super(ConfigurationPhase.PARSE_CONFIGURATION);
}
@ConditionalOnJndi()
static class OnJndi {
}
@ConditionalOnProperty("something")
static class OnProperty {
}
}
ConfigurationPhase は、定義されている条件に従って指定する必要があります。上記の例では、すべての条件は静的であり、PARSE_CONFIGURATION が適切であるように早期に評価できます。
AbstractNestedCondition.MemberMatchOutcomesConfigurationCondition.ConfigurationPhase| コンストラクターと説明 |
|---|
AllNestedConditions(ConfigurationCondition.ConfigurationPhase configurationPhase) |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected ConditionOutcome | getFinalMatchOutcome(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes) |
getConfigurationPhase, getMatchOutcomeanyMatches, logOutcome, matches, matchescloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic AllNestedConditions(ConfigurationCondition.ConfigurationPhase configurationPhase)
protected ConditionOutcome getFinalMatchOutcome(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes)
AbstractNestedCondition の getFinalMatchOutcome Copyright © 2019 Pivotal Software, Inc.. All rights reserved.