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

bindToValueObjectFromIndexedPropertiesSetsOrigin() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free