Class AbstractNestedCondition
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
org.springframework.boot.autoconfigure.condition.AbstractNestedCondition
- All Implemented Interfaces:
org.springframework.context.annotation.Condition
,org.springframework.context.annotation.ConfigurationCondition
- Direct Known Subclasses:
AllNestedConditions
,AnyNestedCondition
,NoneNestedConditions
public abstract class AbstractNestedCondition
extends SpringBootCondition
implements org.springframework.context.annotation.ConfigurationCondition
Abstract base class for nested conditions.
- Since:
- 1.5.22
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Nested classes/interfaces inherited from interface org.springframework.context.annotation.ConfigurationCondition
org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase
protected abstract ConditionOutcome
getFinalMatchOutcome
(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes) getMatchOutcome
(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata) Determine the outcome of the match along with suitable log output.Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.annotation.Condition
matches
-
Method Details
-
getConfigurationPhase
public org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase getConfigurationPhase()- Specified by:
getConfigurationPhase
in interfaceorg.springframework.context.annotation.ConfigurationCondition
-
getMatchOutcome
public ConditionOutcome getMatchOutcome(org.springframework.context.annotation.ConditionContext context, org.springframework.core.type.AnnotatedTypeMetadata metadata) Description copied from class:SpringBootCondition
Determine the outcome of the match along with suitable log output.- Specified by:
getMatchOutcome
in classSpringBootCondition
- Parameters:
context
- the condition contextmetadata
- the annotation metadata- Returns:
- the condition outcome
-
getFinalMatchOutcome
protected abstract ConditionOutcome getFinalMatchOutcome(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes)
-