bindToListOfMaps() — spring-boot Function Reference
Architecture documentation for the bindToListOfMaps() function in MapBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 011a5383_9ade_3a31_cf82_bab091c0435c["bindToListOfMaps()"] bda95e6e_681f_05a1_e8d3_1d10292f4003["getMapBindable()"] 011a5383_9ade_3a31_cf82_bab091c0435c -->|calls| bda95e6e_681f_05a1_e8d3_1d10292f4003 8d8ef66e_fc29_736c_c815_846df9fa8305["getType()"] 011a5383_9ade_3a31_cf82_bab091c0435c -->|calls| 8d8ef66e_fc29_736c_c815_846df9fa8305 bdb60054_39e8_fd4b_ba1e_82134e1dbef4["getListBindable()"] 011a5383_9ade_3a31_cf82_bab091c0435c -->|calls| bdb60054_39e8_fd4b_ba1e_82134e1dbef4 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 011a5383_9ade_3a31_cf82_bab091c0435c -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 011a5383_9ade_3a31_cf82_bab091c0435c -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] 011a5383_9ade_3a31_cf82_bab091c0435c -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a 4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"] 011a5383_9ade_3a31_cf82_bab091c0435c -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6 style 011a5383_9ade_3a31_cf82_bab091c0435c 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 448–460
@Test
void bindToListOfMaps() {
Bindable<List<Integer>> listBindable = Bindable.listOf(Integer.class);
Bindable<Map<String, List<Integer>>> mapBindable = getMapBindable(String.class, listBindable.getType());
Bindable<List<Map<String, List<Integer>>>> target = getListBindable(mapBindable.getType());
MockConfigurationPropertySource mockSource = new MockConfigurationPropertySource();
mockSource.put("foo[0].a", "1,2,3");
mockSource.put("foo[1].b", "4,5,6");
this.sources.add(mockSource);
List<Map<String, List<Integer>>> list = this.binder.bind("foo", target).get();
assertThat(list.get(0).get("a")).containsExactly(1, 2, 3);
assertThat(list.get(1).get("b")).containsExactly(4, 5, 6);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does bindToListOfMaps() do?
bindToListOfMaps() is a function in the spring-boot codebase.
What does bindToListOfMaps() call?
bindToListOfMaps() calls 7 function(s): MockConfigurationPropertySource, add, get, getListBindable, getMapBindable, getType, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free