public abstract class AllNestedConditions extends SpringBootCondition
Condition that will match when all nested class conditions match. Can be used
to create composite conditions, for example:
static class OnJndiAndProperty extends AllNestedConditions {
@ConditionalOnJndi()
static class OnJndi {
}
@ConditionalOnProperty("something")
static class OnProperty {
}
}
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractNestedCondition.MemberMatchOutcomes |
ConfigurationCondition.ConfigurationPhase| Constructor and Description |
|---|
AllNestedConditions(ConfigurationCondition.ConfigurationPhase configurationPhase) |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationCondition.ConfigurationPhase |
getConfigurationPhase() |
protected ConditionOutcome |
getFinalMatchOutcome(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes) |
ConditionOutcome |
getMatchOutcome(ConditionContext context,
AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
anyMatches, logOutcome, matches, matchespublic AllNestedConditions(ConfigurationCondition.ConfigurationPhase configurationPhase)
protected ConditionOutcome getFinalMatchOutcome(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes)
public ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
getConfigurationPhase in interface ConfigurationConditionpublic ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata)
SpringBootConditiongetMatchOutcome in class SpringBootConditioncontext - the condition contextmetadata - the annotation metadataCopyright © 2017 Pivotal Software, Inc.. All rights reserved.