bindToNestedCollectionWhenNonKnownIndexed() — spring-boot Function Reference
Architecture documentation for the bindToNestedCollectionWhenNonKnownIndexed() function in CollectionBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 621f205d_2f24_d9e0_6c8b_748d4901827d["bindToNestedCollectionWhenNonKnownIndexed()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 621f205d_2f24_d9e0_6c8b_748d4901827d -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] 621f205d_2f24_d9e0_6c8b_748d4901827d -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 5faa37bf_ae41_9e2c_52bd_707254709b89["getString()"] 621f205d_2f24_d9e0_6c8b_748d4901827d -->|calls| 5faa37bf_ae41_9e2c_52bd_707254709b89 1892b500_02e7_11fb_fdac_53e2290ba004["getItems()"] 621f205d_2f24_d9e0_6c8b_748d4901827d -->|calls| 1892b500_02e7_11fb_fdac_53e2290ba004 style 621f205d_2f24_d9e0_6c8b_748d4901827d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/CollectionBinderTests.java lines 154–167
@Test
void bindToNestedCollectionWhenNonKnownIndexed() {
// gh-46039
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo[0].items[0]", "a");
source.put("foo[0].items[1]", "b");
source.put("foo[0].string", "test");
this.sources.add(source);
List<ExampleCollectionBean> list = this.binder.bind("foo", Bindable.listOf(ExampleCollectionBean.class)).get();
assertThat(list).singleElement().satisfies((bean) -> {
assertThat(bean.getItems()).containsExactly("a", "b", "d");
assertThat(bean.getString()).isEqualTo("test");
});
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does bindToNestedCollectionWhenNonKnownIndexed() do?
bindToNestedCollectionWhenNonKnownIndexed() is a function in the spring-boot codebase.
What does bindToNestedCollectionWhenNonKnownIndexed() call?
bindToNestedCollectionWhenNonKnownIndexed() calls 4 function(s): MockConfigurationPropertySource, getItems, getString, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free