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