Home / Function/ bindToArrayFromIndexedPropertiesSetsOrigin() — spring-boot Function Reference

bindToArrayFromIndexedPropertiesSetsOrigin() — spring-boot Function Reference

Architecture documentation for the bindToArrayFromIndexedPropertiesSetsOrigin() function in ConfigDataLocationBindHandlerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  83c2ec80_9838_6602_47e0_a6c834a3b560["bindToArrayFromIndexedPropertiesSetsOrigin()"]
  6b13a440_b8c4_f4d4_0bc2_c932b8debc75["MapConfigurationPropertySource()"]
  83c2ec80_9838_6602_47e0_a6c834a3b560 -->|calls| 6b13a440_b8c4_f4d4_0bc2_c932b8debc75
  4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"]
  83c2ec80_9838_6602_47e0_a6c834a3b560 -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6
  bdf1886c_19f9_9cc1_5bff_886f1b1e2835["Binder()"]
  83c2ec80_9838_6602_47e0_a6c834a3b560 -->|calls| bdf1886c_19f9_9cc1_5bff_886f1b1e2835
  8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"]
  83c2ec80_9838_6602_47e0_a6c834a3b560 -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3
  c90d60de_6e4d_b157_5121_acbc78d427f0["get()"]
  83c2ec80_9838_6602_47e0_a6c834a3b560 -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0
  style 83c2ec80_9838_6602_47e0_a6c834a3b560 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataLocationBindHandlerTests.java lines 79–93

	@Test
	void bindToArrayFromIndexedPropertiesSetsOrigin() {
		MapConfigurationPropertySource source = new MapConfigurationPropertySource();
		source.put("locations[0]", "a");
		source.put("locations[1]", "b");
		source.put("locations[2]", "c");
		Binder binder = new Binder(source);
		ConfigDataLocation[] bound = binder.bind("locations", ARRAY, this.handler).get();
		assertThat(bound[0]).hasToString("a");
		assertThat(bound[0].getOrigin()).hasToString("\"locations[0]\" from property source \"source\"");
		assertThat(bound[1]).hasToString("b");
		assertThat(bound[1].getOrigin()).hasToString("\"locations[1]\" from property source \"source\"");
		assertThat(bound[2]).hasToString("c");
		assertThat(bound[2].getOrigin()).hasToString("\"locations[2]\" from property source \"source\"");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToArrayFromIndexedPropertiesSetsOrigin() do?
bindToArrayFromIndexedPropertiesSetsOrigin() is a function in the spring-boot codebase.
What does bindToArrayFromIndexedPropertiesSetsOrigin() call?
bindToArrayFromIndexedPropertiesSetsOrigin() calls 5 function(s): Binder, MapConfigurationPropertySource, bind, get, put.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free