determineOutcome() — spring-boot Function Reference
Architecture documentation for the determineOutcome() function in OnPropertyCondition.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 51330037_1cc3_1027_c2bb_41b74657062b["determineOutcome()"] 180d6191_25c7_bb6a_a314_cf49a53e0a6e["getMatchOutcome()"] 180d6191_25c7_bb6a_a314_cf49a53e0a6e -->|calls| 51330037_1cc3_1027_c2bb_41b74657062b fc8883cb_fd6a_e1e3_6f0b_127286926064["Spec()"] 51330037_1cc3_1027_c2bb_41b74657062b -->|calls| fc8883cb_fd6a_e1e3_6f0b_127286926064 e7538375_b47e_3c17_95ec_b1f2dddc07b4["collectProperties()"] 51330037_1cc3_1027_c2bb_41b74657062b -->|calls| e7538375_b47e_3c17_95ec_b1f2dddc07b4 style 51330037_1cc3_1027_c2bb_41b74657062b 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 99–116
private ConditionOutcome determineOutcome(MergedAnnotation<Annotation> annotation, PropertyResolver resolver) {
Class<Annotation> annotationType = annotation.getType();
Spec spec = new Spec(annotationType, annotation.asAnnotationAttributes());
List<String> missingProperties = new ArrayList<>();
List<String> nonMatchingProperties = new ArrayList<>();
spec.collectProperties(resolver, missingProperties, nonMatchingProperties);
if (!missingProperties.isEmpty()) {
return ConditionOutcome.noMatch(ConditionMessage.forCondition(annotationType, spec)
.didNotFind("property", "properties")
.items(Style.QUOTE, missingProperties));
}
if (!nonMatchingProperties.isEmpty()) {
return ConditionOutcome.noMatch(ConditionMessage.forCondition(annotationType, spec)
.found("different value in property", "different value in properties")
.items(Style.QUOTE, nonMatchingProperties));
}
return ConditionOutcome.match(ConditionMessage.forCondition(annotationType, spec).because("matched"));
}
Domain
Subdomains
Calls
- Spec()
- collectProperties()
Called By
Source
Frequently Asked Questions
What does determineOutcome() do?
determineOutcome() is a function in the spring-boot codebase.
What does determineOutcome() call?
determineOutcome() calls 2 function(s): Spec, collectProperties.
What calls determineOutcome()?
determineOutcome() is called by 1 function(s): getMatchOutcome.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free