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

include() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  86f0d977_4829_5f34_8d94_d250e0aecc13["include()"]
  804eb544_f636_3a28_33b7_897af5b689e0["getAllGroups()"]
  86f0d977_4829_5f34_8d94_d250e0aecc13 -->|calls| 804eb544_f636_3a28_33b7_897af5b689e0
  18d03949_3205_8b9c_7ff0_10a8da9ce451["addOrMergeSource()"]
  86f0d977_4829_5f34_8d94_d250e0aecc13 -->|calls| 18d03949_3205_8b9c_7ff0_10a8da9ce451
  style 86f0d977_4829_5f34_8d94_d250e0aecc13 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 83–97

	public void include(ConfigurationMetadataRepository repository) {
		for (ConfigurationMetadataGroup group : repository.getAllGroups().values()) {
			ConfigurationMetadataGroup existingGroup = this.allGroups.get(group.getId());
			if (existingGroup == null) {
				this.allGroups.put(group.getId(), group);
			}
			else {
				// Merge properties
				group.getProperties().forEach((name, value) -> existingGroup.getProperties().putIfAbsent(name, value));
				// Merge sources
				group.getSources().forEach((name, value) -> addOrMergeSource(existingGroup.getSources(), name, value));
			}
		}

	}

Domain

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free