Class SpringBootCondition
java.lang.Object
org.springframework.boot.autoconfigure.condition.SpringBootCondition
- All Implemented Interfaces:
- Condition
- Direct Known Subclasses:
- AbstractNestedCondition,- ClientsConfiguredCondition,- IssuerUriCondition,- KeyValueCondition,- MessageSourceAutoConfiguration.ResourceBundleCondition,- OnDatabaseInitializationCondition,- OnEnabledDevToolsCondition,- OnEndpointElementCondition,- OnPropertyListCondition,- ResourceCondition
Base of all 
Condition implementations used with Spring Boot. Provides sensible
 logging to help the user diagnose what classes are loaded.- Since:
- 1.0.0
- Author:
- Phillip Webb, Greg Turnquist
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected final booleananyMatches(ConditionContext context, AnnotatedTypeMetadata metadata, Condition... conditions) Return true if any of the specified conditions match.abstract ConditionOutcomegetMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) Determine the outcome of the match along with suitable log output.protected final voidlogOutcome(String classOrMethodName, ConditionOutcome outcome) final booleanmatches(ConditionContext context, AnnotatedTypeMetadata metadata) protected final booleanmatches(ConditionContext context, AnnotatedTypeMetadata metadata, Condition condition) Return true if any of the specified condition matches.
- 
Constructor Details- 
SpringBootConditionpublic SpringBootCondition()
 
- 
- 
Method Details- 
matches
- 
logOutcome
- 
getMatchOutcomepublic abstract ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) Determine the outcome of the match along with suitable log output.- Parameters:
- context- the condition context
- metadata- the annotation metadata
- Returns:
- the condition outcome
 
- 
anyMatchesprotected final boolean anyMatches(ConditionContext context, AnnotatedTypeMetadata metadata, Condition... conditions) Return true if any of the specified conditions match.- Parameters:
- context- the context
- metadata- the annotation meta-data
- conditions- conditions to test
- Returns:
- trueif any condition matches.
 
- 
matchesprotected final boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata, Condition condition) Return true if any of the specified condition matches.- Parameters:
- context- the context
- metadata- the annotation meta-data
- condition- condition to test
- Returns:
- trueif the condition matches.
 
 
-