bindToCollectionWithDefaultConstructor() — spring-boot Function Reference
Architecture documentation for the bindToCollectionWithDefaultConstructor() function in CollectionBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD a7a58a49_8a0d_f594_e589_d526cd0824ba["bindToCollectionWithDefaultConstructor()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] a7a58a49_8a0d_f594_e589_d526cd0824ba -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] a7a58a49_8a0d_f594_e589_d526cd0824ba -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 1892b500_02e7_11fb_fdac_53e2290ba004["getItems()"] a7a58a49_8a0d_f594_e589_d526cd0824ba -->|calls| 1892b500_02e7_11fb_fdac_53e2290ba004 style a7a58a49_8a0d_f594_e589_d526cd0824ba 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 361–372
@Test
void bindToCollectionWithDefaultConstructor() {
// gh-12322
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.items", "a,b,c,c");
this.sources.add(source);
ExampleCustomWithDefaultConstructorBean result = this.binder
.bind("foo", ExampleCustomWithDefaultConstructorBean.class)
.get();
assertThat(result.getItems()).hasSize(4);
assertThat(result.getItems()).containsExactly("a", "b", "c", "c");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToCollectionWithDefaultConstructor() do?
bindToCollectionWithDefaultConstructor() is a function in the spring-boot codebase.
What does bindToCollectionWithDefaultConstructor() call?
bindToCollectionWithDefaultConstructor() calls 3 function(s): MockConfigurationPropertySource, getItems, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free