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

addOrMergeSource() — spring-boot Function Reference

Architecture documentation for the addOrMergeSource() function in SimpleConfigurationMetadataRepository.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  18d03949_3205_8b9c_7ff0_10a8da9ce451["addOrMergeSource()"]
  6fc517f9_743f_fee6_9eb1_7a18a9873a2b["add()"]
  6fc517f9_743f_fee6_9eb1_7a18a9873a2b -->|calls| 18d03949_3205_8b9c_7ff0_10a8da9ce451
  86f0d977_4829_5f34_8d94_d250e0aecc13["include()"]
  86f0d977_4829_5f34_8d94_d250e0aecc13 -->|calls| 18d03949_3205_8b9c_7ff0_10a8da9ce451
  style 18d03949_3205_8b9c_7ff0_10a8da9ce451 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/SimpleConfigurationMetadataRepository.java lines 106–115

	private void addOrMergeSource(Map<String, ConfigurationMetadataSource> sources, String name,
			ConfigurationMetadataSource source) {
		ConfigurationMetadataSource existingSource = sources.get(name);
		if (existingSource == null) {
			sources.put(name, source);
		}
		else {
			source.getProperties().forEach((k, v) -> existingSource.getProperties().putIfAbsent(k, v));
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does addOrMergeSource() do?
addOrMergeSource() is a function in the spring-boot codebase.
What calls addOrMergeSource()?
addOrMergeSource() is called by 2 function(s): add, include.

Analyze Your Own Codebase

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

Try Supermodel Free