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

add() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6fc517f9_743f_fee6_9eb1_7a18a9873a2b["add()"]
  18d03949_3205_8b9c_7ff0_10a8da9ce451["addOrMergeSource()"]
  6fc517f9_743f_fee6_9eb1_7a18a9873a2b -->|calls| 18d03949_3205_8b9c_7ff0_10a8da9ce451
  183d39e9_1a83_d06d_1658_d4187e56a32f["getGroup()"]
  6fc517f9_743f_fee6_9eb1_7a18a9873a2b -->|calls| 183d39e9_1a83_d06d_1658_d4187e56a32f
  style 6fc517f9_743f_fee6_9eb1_7a18a9873a2b 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 54–64

	public void add(Collection<ConfigurationMetadataSource> sources) {
		for (ConfigurationMetadataSource source : sources) {
			String groupId = source.getGroupId();
			ConfigurationMetadataGroup group = this.allGroups.computeIfAbsent(groupId,
					(key) -> new ConfigurationMetadataGroup(groupId));
			String sourceType = source.getType();
			if (sourceType != null) {
				addOrMergeSource(group.getSources(), sourceType, source);
			}
		}
	}

Domain

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free