loadWhenBindingToMultiConstructorConfigurationProperties() — spring-boot Function Reference
Architecture documentation for the loadWhenBindingToMultiConstructorConfigurationProperties() function in ConfigurationPropertiesTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 4fd05bb4_be03_17b5_3eb2_e0870e5b2dbc["loadWhenBindingToMultiConstructorConfigurationProperties()"] d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] 4fd05bb4_be03_17b5_3eb2_e0870e5b2dbc -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a 05d207ba_cdfc_1f3b_359f_89b70a0aec4e["load()"] 4fd05bb4_be03_17b5_3eb2_e0870e5b2dbc -->|calls| 05d207ba_cdfc_1f3b_359f_89b70a0aec4e 7703149d_6d66_defe_a632_8fcaad6dd92f["getAge()"] 4fd05bb4_be03_17b5_3eb2_e0870e5b2dbc -->|calls| 7703149d_6d66_defe_a632_8fcaad6dd92f style 4fd05bb4_be03_17b5_3eb2_e0870e5b2dbc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 1107–1120
@Test // gh-18485
void loadWhenBindingToMultiConstructorConfigurationProperties() {
MutablePropertySources sources = this.context.getEnvironment().getPropertySources();
Map<String, Object> source = new HashMap<>();
source.put("test.nested[0].name", "spring");
source.put("test.nested[0].age", "5");
sources.addLast(new MapPropertySource("test", source));
load(MultiConstructorConfigurationPropertiesConfiguration.class);
MultiConstructorConfigurationListProperties bean = this.context
.getBean(MultiConstructorConfigurationListProperties.class);
MultiConstructorConfigurationProperties nested = bean.getNested().get(0);
assertThat(nested.getName()).isEqualTo("spring");
assertThat(nested.getAge()).isEqualTo(5);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does loadWhenBindingToMultiConstructorConfigurationProperties() do?
loadWhenBindingToMultiConstructorConfigurationProperties() is a function in the spring-boot codebase.
What does loadWhenBindingToMultiConstructorConfigurationProperties() call?
loadWhenBindingToMultiConstructorConfigurationProperties() calls 3 function(s): get, getAge, load.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free