of() — spring-boot Function Reference
Architecture documentation for the of() function in ConfigurationProperty.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f4b76c1c_abdc_fe17_d6c1_88412a0633e7["of()"] 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"] 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78 -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 3120aeb1_048c_cc67_6346_7c7fb29b8cf7["findValidValues()"] 3120aeb1_048c_cc67_6346_7c7fb29b8cf7 -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 df0a7931_2f55_76c9_32eb_5866c9481bf7["handlerShouldCallRecordBindingIfConfigurationPropertyIsNotNull()"] df0a7931_2f55_76c9_32eb_5866c9481bf7 -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 b5a77aa2_999d_c0a8_1a19_8968653f56cf["bindToCollectionWhenNestedShouldReturnPopulatedCollection()"] b5a77aa2_999d_c0a8_1a19_8968653f56cf -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 074de5aa_0cd7_6b38_970a_561d383026c8["bindToCollectionShouldRespectCollectionType()"] 074de5aa_0cd7_6b38_970a_561d383026c8 -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 17e45e2c_8a68_3b47_d82e_97767909dc1a["bindToBeanWithNestedCollectionShouldPopulateCollection()"] 17e45e2c_8a68_3b47_d82e_97767909dc1a -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 e63ade1b_5b08_b8d2_1216_40b42612e9dd["bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection()"] e63ade1b_5b08_b8d2_1216_40b42612e9dd -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 7fb69317_165a_5df2_c7d8_fd8f336c7a89["bindToBeanWithNestedCollectionAndNonIterableSourceShouldNotFail()"] 7fb69317_165a_5df2_c7d8_fd8f336c7a89 -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 d98c4b4f_0961_c11a_7c90_161775d176db["bindToBeanWithClonedArray()"] d98c4b4f_0961_c11a_7c90_161775d176db -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 297a9d23_a0d8_88a9_d8b5_30b51fea8b4a["bindToBeanWithExceptionInGetterForExistingValue()"] 297a9d23_a0d8_88a9_d8b5_30b51fea8b4a -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 0b044e76_8081_9638_13d2_1c4ac8350947["bindToBeanWithEnumSetCollection()"] 0b044e76_8081_9638_13d2_1c4ac8350947 -->|calls| f4b76c1c_abdc_fe17_d6c1_88412a0633e7 012c083c_d577_0dd6_ac35_cb2b7360b805["of()"] f4b76c1c_abdc_fe17_d6c1_88412a0633e7 -->|calls| 012c083c_d577_0dd6_ac35_cb2b7360b805 6a9b2d4e_efe9_9d62_1c64_1e3e28157003["ConfigurationProperty()"] f4b76c1c_abdc_fe17_d6c1_88412a0633e7 -->|calls| 6a9b2d4e_efe9_9d62_1c64_1e3e28157003 24826c4f_acf6_aa2a_3d90_87a20f29d219["getValue()"] f4b76c1c_abdc_fe17_d6c1_88412a0633e7 -->|calls| 24826c4f_acf6_aa2a_3d90_87a20f29d219 style f4b76c1c_abdc_fe17_d6c1_88412a0633e7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationProperty.java lines 128–134
@Contract("_, !null -> !null")
static @Nullable ConfigurationProperty of(ConfigurationPropertyName name, @Nullable OriginTrackedValue value) {
if (value == null) {
return null;
}
return new ConfigurationProperty(name, value.getValue(), value.getOrigin());
}
Domain
Subdomains
Called By
- bindToBeanWithClonedArray()
- bindToBeanWithEnumSetCollection()
- bindToBeanWithExceptionInGetterForExistingValue()
- bindToBeanWithNestedCollectionAndNonIterableSourceShouldNotFail()
- bindToBeanWithNestedCollectionShouldPopulateCollection()
- bindToCollectionShouldRespectCollectionType()
- bindToCollectionWhenNestedShouldReturnPopulatedCollection()
- bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection()
- findValidValues()
- handlerShouldCallRecordBindingIfConfigurationPropertyIsNotNull()
- of()
Source
Frequently Asked Questions
What does of() do?
of() is a function in the spring-boot codebase.
What does of() call?
of() calls 4 function(s): ConfigurationProperty, getOrigin, getValue, of.
What calls of()?
of() is called by 11 function(s): bindToBeanWithClonedArray, bindToBeanWithEnumSetCollection, bindToBeanWithExceptionInGetterForExistingValue, bindToBeanWithNestedCollectionAndNonIterableSourceShouldNotFail, bindToBeanWithNestedCollectionShouldPopulateCollection, bindToCollectionShouldRespectCollectionType, bindToCollectionWhenNestedShouldReturnPopulatedCollection, bindToNestedCollectionWhenEmptyStringShouldReturnEmptyCollection, and 3 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free