getDefaultValue() — spring-boot Function Reference
Architecture documentation for the getDefaultValue() function in ValueObjectBinder.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 46b98d48_2b64_2351_c50d_2fa01b9964c8["getDefaultValue()"] 162f4467_dcd4_9555_aafe_79bd463f235b["bind()"] 162f4467_dcd4_9555_aafe_79bd463f235b -->|calls| 46b98d48_2b64_2351_c50d_2fa01b9964c8 7aa7c7f1_53b7_c1f7_1b1c_b5d601b34a76["create()"] 7aa7c7f1_53b7_c1f7_1b1c_b5d601b34a76 -->|calls| 46b98d48_2b64_2351_c50d_2fa01b9964c8 9864967b_37d9_0634_dbcd_5f0500b8eb9b["getType()"] 46b98d48_2b64_2351_c50d_2fa01b9964c8 -->|calls| 9864967b_37d9_0634_dbcd_5f0500b8eb9b 3b2df73c_87d3_81a4_1e63_5163a6380984["getAnnotations()"] 46b98d48_2b64_2351_c50d_2fa01b9964c8 -->|calls| 3b2df73c_87d3_81a4_1e63_5163a6380984 95e80a07_1395_d714_760f_30137961bf1f["getNewDefaultValueInstanceIfPossible()"] 46b98d48_2b64_2351_c50d_2fa01b9964c8 -->|calls| 95e80a07_1395_d714_760f_30137961bf1f 2b446e51_27a0_98ef_8d69_4694e5c43048["convertDefaultValue()"] 46b98d48_2b64_2351_c50d_2fa01b9964c8 -->|calls| 2b446e51_27a0_98ef_8d69_4694e5c43048 style 46b98d48_2b64_2351_c50d_2fa01b9964c8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/ValueObjectBinder.java lines 124–137
private <T> @Nullable T getDefaultValue(Binder.Context context, ConstructorParameter parameter) {
ResolvableType type = parameter.getType();
Annotation[] annotations = parameter.getAnnotations();
for (Annotation annotation : annotations) {
if (annotation instanceof DefaultValue defaultValueAnnotation) {
String[] defaultValue = defaultValueAnnotation.value();
if (defaultValue.length == 0) {
return getNewDefaultValueInstanceIfPossible(context, type);
}
return convertDefaultValue(context.getConverter(), defaultValue, type, annotations);
}
}
return context.getConverter().convert(null, type);
}
Domain
Subdomains
Calls
- convertDefaultValue()
- getAnnotations()
- getNewDefaultValueInstanceIfPossible()
- getType()
Source
Frequently Asked Questions
What does getDefaultValue() do?
getDefaultValue() is a function in the spring-boot codebase.
What does getDefaultValue() call?
getDefaultValue() calls 4 function(s): convertDefaultValue, getAnnotations, getNewDefaultValueInstanceIfPossible, getType.
What calls getDefaultValue()?
getDefaultValue() is called by 2 function(s): bind, create.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free