isUnbindableBean() — spring-boot Function Reference
Architecture documentation for the isUnbindableBean() function in Binder.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 274e625f_c882_1267_e6cb_c28cd7adc0e5["isUnbindableBean()"] b8ef4d88_30d9_3ee1_329f_d371353527a2["bindDataObject()"] b8ef4d88_30d9_3ee1_329f_d371353527a2 -->|calls| 274e625f_c882_1267_e6cb_c28cd7adc0e5 0b83b192_3d87_a5c9_0a8f_2f1a0e41d0fc["getSources()"] 274e625f_c882_1267_e6cb_c28cd7adc0e5 -->|calls| 0b83b192_3d87_a5c9_0a8f_2f1a0e41d0fc 8d8ef66e_fc29_736c_c815_846df9fa8305["getType()"] 274e625f_c882_1267_e6cb_c28cd7adc0e5 -->|calls| 8d8ef66e_fc29_736c_c815_846df9fa8305 7437ce23_cb84_88cd_05ea_0748b72957a1["getName()"] 274e625f_c882_1267_e6cb_c28cd7adc0e5 -->|calls| 7437ce23_cb84_88cd_05ea_0748b72957a1 style 274e625f_c882_1267_e6cb_c28cd7adc0e5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Binder.java lines 525–537
private boolean isUnbindableBean(ConfigurationPropertyName name, Bindable<?> target, Context context) {
for (ConfigurationPropertySource source : context.getSources()) {
if (source.containsDescendantOf(name) == ConfigurationPropertyState.PRESENT) {
// We know there are properties to bind so we can't bypass anything
return false;
}
}
Class<?> resolved = target.getType().resolve(Object.class);
if (resolved.isPrimitive() || NON_BEAN_CLASSES.contains(resolved)) {
return true;
}
return resolved.getName().startsWith("java.");
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isUnbindableBean() do?
isUnbindableBean() is a function in the spring-boot codebase.
What does isUnbindableBean() call?
isUnbindableBean() calls 3 function(s): getName, getSources, getType.
What calls isUnbindableBean()?
isUnbindableBean() is called by 1 function(s): bindDataObject.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free