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:
- 2.0.1
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractNestedCondition.MemberMatchOutcomes
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.springframework.context.annotation.ConfigurationCondition.ConfigurationPhase
getConfigurationPhase()
protected abstract ConditionOutcome
getFinalMatchOutcome(AbstractNestedCondition.MemberMatchOutcomes memberOutcomes)
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.Methods inherited from class org.springframework.boot.autoconfigure.condition.SpringBootCondition
anyMatches, logOutcome, matches, matches
Method Detail
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)