getMatchOutcome() — spring-boot Function Reference
Architecture documentation for the getMatchOutcome() function in OnPropertyCondition.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 180d6191_25c7_bb6a_a314_cf49a53e0a6e["getMatchOutcome()"] 93db3889_964a_b63c_25d1_054a64ccf71e["stream()"] 180d6191_25c7_bb6a_a314_cf49a53e0a6e -->|calls| 93db3889_964a_b63c_25d1_054a64ccf71e 51330037_1cc3_1027_c2bb_41b74657062b["determineOutcome()"] 180d6191_25c7_bb6a_a314_cf49a53e0a6e -->|calls| 51330037_1cc3_1027_c2bb_41b74657062b 3eb43c2a_e2b6_432c_25f1_4b526dc2480a["isMatch()"] 180d6191_25c7_bb6a_a314_cf49a53e0a6e -->|calls| 3eb43c2a_e2b6_432c_25f1_4b526dc2480a style 180d6191_25c7_bb6a_a314_cf49a53e0a6e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnPropertyCondition.java lines 55–69
@Override
public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {
MergedAnnotations mergedAnnotations = metadata.getAnnotations();
List<MergedAnnotation<Annotation>> annotations = stream(mergedAnnotations).toList();
List<ConditionMessage> noMatch = new ArrayList<>();
List<ConditionMessage> match = new ArrayList<>();
for (MergedAnnotation<Annotation> annotation : annotations) {
ConditionOutcome outcome = determineOutcome(annotation, context.getEnvironment());
(outcome.isMatch() ? match : noMatch).add(outcome.getConditionMessage());
}
if (!noMatch.isEmpty()) {
return ConditionOutcome.noMatch(ConditionMessage.of(noMatch));
}
return ConditionOutcome.match(ConditionMessage.of(match));
}
Domain
Subdomains
Calls
- determineOutcome()
- isMatch()
- stream()
Source
Frequently Asked Questions
What does getMatchOutcome() do?
getMatchOutcome() is a function in the spring-boot codebase.
What does getMatchOutcome() call?
getMatchOutcome() calls 3 function(s): determineOutcome, isMatch, stream.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free