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