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

bindToMapWithCustomConverterAndChildElements() — spring-boot Function Reference

Architecture documentation for the bindToMapWithCustomConverterAndChildElements() function in MapBinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  8390f1e7_5790_3adf_c23e_71e4d371eb5f["bindToMapWithCustomConverterAndChildElements()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  8390f1e7_5790_3adf_c23e_71e4d371eb5f -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  8390f1e7_5790_3adf_c23e_71e4d371eb5f -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  8390f1e7_5790_3adf_c23e_71e4d371eb5f -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"]
  8390f1e7_5790_3adf_c23e_71e4d371eb5f -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6
  style 8390f1e7_5790_3adf_c23e_71e4d371eb5f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/MapBinderTests.java lines 526–540

	@Test
	void bindToMapWithCustomConverterAndChildElements() {
		// gh-11892
		DefaultConversionService conversionService = new DefaultConversionService();
		conversionService.addConverter(new MapConverter());
		Binder binder = new Binder(this.sources, null, conversionService, null);
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("foo", "boom");
		source.put("foo.a", "a");
		source.put("foo.b", "b");
		this.sources.add(source);
		Map<String, String> map = binder.bind("foo", STRING_STRING_MAP).get();
		assertThat(map).containsEntry("a", "a");
		assertThat(map).containsEntry("b", "b");
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToMapWithCustomConverterAndChildElements() do?
bindToMapWithCustomConverterAndChildElements() is a function in the spring-boot codebase.
What does bindToMapWithCustomConverterAndChildElements() call?
bindToMapWithCustomConverterAndChildElements() calls 4 function(s): MockConfigurationPropertySource, add, get, put.

Analyze Your Own Codebase

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

Try Supermodel Free