extract() — spring-boot Function Reference
Architecture documentation for the extract() function in OnBeanCondition.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD b215a045_003d_ca5f_f7f1_607aa7b55546["extract()"] 14ef4e99_fc3b_79df_b329_a8d884951727["Spec()"] 14ef4e99_fc3b_79df_b329_a8d884951727 -->|calls| b215a045_003d_ca5f_f7f1_607aa7b55546 5f7f6b86_e4e1_3c58_a600_2409c3234a60["extractTypes()"] 5f7f6b86_e4e1_3c58_a600_2409c3234a60 -->|calls| b215a045_003d_ca5f_f7f1_607aa7b55546 f70893ce_a7b9_f558_f105_c937e4d13cf1["merge()"] b215a045_003d_ca5f_f7f1_607aa7b55546 -->|calls| f70893ce_a7b9_f558_f105_c937e4d13cf1 style b215a045_003d_ca5f_f7f1_607aa7b55546 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnBeanCondition.java lines 610–628
private Set<String> extract(@Nullable MultiValueMap<String, @Nullable Object> attributes,
String... attributeNames) {
if (CollectionUtils.isEmpty(attributes)) {
return Collections.emptySet();
}
Set<String> result = new LinkedHashSet<>();
for (String attributeName : attributeNames) {
List<@Nullable Object> values = attributes.getOrDefault(attributeName, Collections.emptyList());
for (Object value : values) {
if (value instanceof String[] stringArray) {
merge(result, stringArray);
}
else if (value instanceof String string) {
merge(result, string);
}
}
}
return result.isEmpty() ? Collections.emptySet() : result;
}
Domain
Subdomains
Calls
- merge()
Called By
Source
Frequently Asked Questions
What does extract() do?
extract() is a function in the spring-boot codebase.
What does extract() call?
extract() calls 1 function(s): merge.
What calls extract()?
extract() is called by 2 function(s): Spec, extractTypes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free