bindToCollectionWithNoDefaultConstructor() — spring-boot Function Reference
Architecture documentation for the bindToCollectionWithNoDefaultConstructor() function in CollectionBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD ba91a065_a6f4_1514_ead3_9185e885b865["bindToCollectionWithNoDefaultConstructor()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] ba91a065_a6f4_1514_ead3_9185e885b865 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 725e97d2_341b_6665_84bc_9206c7185c54["put()"] ba91a065_a6f4_1514_ead3_9185e885b865 -->|calls| 725e97d2_341b_6665_84bc_9206c7185c54 1892b500_02e7_11fb_fdac_53e2290ba004["getItems()"] ba91a065_a6f4_1514_ead3_9185e885b865 -->|calls| 1892b500_02e7_11fb_fdac_53e2290ba004 style ba91a065_a6f4_1514_ead3_9185e885b865 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 349–359
@Test
void bindToCollectionWithNoDefaultConstructor() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.items", "a,b,c,c");
this.sources.add(source);
ExampleCustomNoDefaultConstructorBean result = this.binder
.bind("foo", ExampleCustomNoDefaultConstructorBean.class)
.get();
assertThat(result.getItems()).hasSize(4);
assertThat(result.getItems()).containsExactly("a", "b", "c", "c");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToCollectionWithNoDefaultConstructor() do?
bindToCollectionWithNoDefaultConstructor() is a function in the spring-boot codebase.
What does bindToCollectionWithNoDefaultConstructor() call?
bindToCollectionWithNoDefaultConstructor() 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