getSupplier() — spring-boot Function Reference
Architecture documentation for the getSupplier() function in JavaBeanBinder.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 5e90a436_d3d0_08f8_af04_60a8e96f2818["getSupplier()"] 20338f0d_1278_4ee8_2318_7a2fbc33ae58["bind()"] 20338f0d_1278_4ee8_2318_7a2fbc33ae58 -->|calls| 5e90a436_d3d0_08f8_af04_60a8e96f2818 1634bb6c_7b0e_80f6_9ae3_1a59b11c2574["getValue()"] 5e90a436_d3d0_08f8_af04_60a8e96f2818 -->|calls| 1634bb6c_7b0e_80f6_9ae3_1a59b11c2574 67da7428_a464_8857_b8fc_2f76cde0304f["getResolvedType()"] 5e90a436_d3d0_08f8_af04_60a8e96f2818 -->|calls| 67da7428_a464_8857_b8fc_2f76cde0304f 6a72022e_f2f8_697c_c37b_c8e77e103247["get()"] 5e90a436_d3d0_08f8_af04_60a8e96f2818 -->|calls| 6a72022e_f2f8_697c_c37b_c8e77e103247 style 5e90a436_d3d0_08f8_af04_60a8e96f2818 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/JavaBeanBinder.java lines 269–281
@SuppressWarnings("unchecked")
BeanSupplier<T> getSupplier(Bindable<T> target) {
return new BeanSupplier<>(() -> {
T instance = null;
if (target.getValue() != null) {
instance = target.getValue().get();
}
if (instance == null) {
instance = (T) BeanUtils.instantiateClass(getResolvedType());
}
return instance;
});
}
Domain
Subdomains
Calls
- get()
- getResolvedType()
- getValue()
Called By
Source
Frequently Asked Questions
What does getSupplier() do?
getSupplier() is a function in the spring-boot codebase.
What does getSupplier() call?
getSupplier() calls 3 function(s): get, getResolvedType, getValue.
What calls getSupplier()?
getSupplier() is called by 1 function(s): bind.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free