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

bindToMapWithPlaceholdersShouldBeGreedyForScalars() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  22cfb545_6d10_7501_4976_a89e6f05b7bd["bindToMapWithPlaceholdersShouldBeGreedyForScalars()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  22cfb545_6d10_7501_4976_a89e6f05b7bd -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  22cfb545_6d10_7501_4976_a89e6f05b7bd -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  22cfb545_6d10_7501_4976_a89e6f05b7bd -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  style 22cfb545_6d10_7501_4976_a89e6f05b7bd 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 320–329

	@Test
	void bindToMapWithPlaceholdersShouldBeGreedyForScalars() {
		StandardEnvironment environment = new StandardEnvironment();
		TestPropertySourceUtils.addInlinedPropertiesToEnvironment(environment, "foo=boo");
		MockConfigurationPropertySource source = new MockConfigurationPropertySource("foo.aaa.bbb.ccc", "baz-${foo}");
		this.sources.add(source);
		Binder binder = new Binder(this.sources, new PropertySourcesPlaceholdersResolver(environment));
		Map<String, ExampleEnum> result = binder.bind("foo", Bindable.mapOf(String.class, ExampleEnum.class)).get();
		assertThat(result).containsEntry("aaa.bbb.ccc", ExampleEnum.BAZ_BOO);
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free