bindToMapWithNoDefaultConstructor() — spring-boot Function Reference
Architecture documentation for the bindToMapWithNoDefaultConstructor() function in MapBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 36126e99_1f00_5686_96f7_5cedc914f74c["bindToMapWithNoDefaultConstructor()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 36126e99_1f00_5686_96f7_5cedc914f74c -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 36126e99_1f00_5686_96f7_5cedc914f74c -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] 36126e99_1f00_5686_96f7_5cedc914f74c -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a 4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"] 36126e99_1f00_5686_96f7_5cedc914f74c -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6 c1c2800b_8356_d703_b914_26573e5ea4b8["getItems()"] 36126e99_1f00_5686_96f7_5cedc914f74c -->|calls| c1c2800b_8356_d703_b914_26573e5ea4b8 style 36126e99_1f00_5686_96f7_5cedc914f74c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/MapBinderTests.java lines 572–581
@Test
void bindToMapWithNoDefaultConstructor() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.items.a", "b");
this.sources.add(source);
ExampleCustomNoDefaultConstructorBean result = this.binder
.bind("foo", ExampleCustomNoDefaultConstructorBean.class)
.get();
assertThat(result.getItems()).containsOnly(entry("foo", "bar"), entry("a", "b"));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToMapWithNoDefaultConstructor() do?
bindToMapWithNoDefaultConstructor() is a function in the spring-boot codebase.
What does bindToMapWithNoDefaultConstructor() call?
bindToMapWithNoDefaultConstructor() calls 5 function(s): MockConfigurationPropertySource, add, get, getItems, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free