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

map() — spring-boot Function Reference

Architecture documentation for the map() function in DefaultPropertyMapper.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  1cf87666_96b6_dda3_c84e_9ef5ff583ff3["map()"]
  0959683f_cc40_656a_b80e_bdc46d92a51d["isFrom()"]
  1cf87666_96b6_dda3_c84e_9ef5ff583ff3 -->|calls| 0959683f_cc40_656a_b80e_bdc46d92a51d
  90e06596_1f28_6ad0_2f63_a35bc87a2261["getMapping()"]
  1cf87666_96b6_dda3_c84e_9ef5ff583ff3 -->|calls| 90e06596_1f28_6ad0_2f63_a35bc87a2261
  8311cc93_ea4d_61a1_da04_7201b3572106["tryMap()"]
  1cf87666_96b6_dda3_c84e_9ef5ff583ff3 -->|calls| 8311cc93_ea4d_61a1_da04_7201b3572106
  style 1cf87666_96b6_dda3_c84e_9ef5ff583ff3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/DefaultPropertyMapper.java lines 47–58

	@Override
	public List<String> map(ConfigurationPropertyName configurationPropertyName) {
		// Use a local copy in case another thread changes things
		LastMapping<ConfigurationPropertyName, List<String>> last = this.lastMappedConfigurationPropertyName;
		if (last != null && last.isFrom(configurationPropertyName)) {
			return last.getMapping();
		}
		String convertedName = configurationPropertyName.toString();
		List<String> mapping = Collections.singletonList(convertedName);
		this.lastMappedConfigurationPropertyName = new LastMapping<>(configurationPropertyName, mapping);
		return mapping;
	}

Domain

Subdomains

Calls

  • getMapping()
  • isFrom()
  • tryMap()

Frequently Asked Questions

What does map() do?
map() is a function in the spring-boot codebase.
What does map() call?
map() calls 3 function(s): getMapping, isFrom, tryMap.

Analyze Your Own Codebase

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

Try Supermodel Free