public abstract class AnyNestedCondition extends SpringBootCondition implements 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 { } }
ConfigurationCondition.ConfigurationPhase
Constructor and Description |
---|
AnyNestedCondition(ConfigurationCondition.ConfigurationPhase configurationPhase) |
Modifier and Type | Method and Description |
---|---|
ConfigurationCondition.ConfigurationPhase |
getConfigurationPhase() |
ConditionOutcome |
getMatchOutcome(ConditionContext context,
AnnotatedTypeMetadata metadata)
Determine the outcome of the match along with suitable log output.
|
anyMatches, matches, matches
public AnyNestedCondition(ConfigurationCondition.ConfigurationPhase configurationPhase)
public ConfigurationCondition.ConfigurationPhase getConfigurationPhase()
getConfigurationPhase
in interface ConfigurationCondition
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata)
SpringBootCondition
getMatchOutcome
in class SpringBootCondition
Copyright © 2015 Pivotal Software, Inc.. All rights reserved.