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

asContributors() — spring-boot Function Reference

Architecture documentation for the asContributors() function in ConfigDataEnvironmentContributors.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  10379bd7_d9a9_c449_5d9e_3d56fd5ff5c0["asContributors()"]
  2c598cf7_c89e_1a9a_34ad_544bfdb794e9["withProcessedImports()"]
  2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| 10379bd7_d9a9_c449_5d9e_3d56fd5ff5c0
  723faf45_147b_9b0f_f957_9de88f8cbb17["isEmpty()"]
  10379bd7_d9a9_c449_5d9e_3d56fd5ff5c0 -->|calls| 723faf45_147b_9b0f_f957_9de88f8cbb17
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  10379bd7_d9a9_c449_5d9e_3d56fd5ff5c0 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  style 10379bd7_d9a9_c449_5d9e_3d56fd5ff5c0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributors.java lines 172–191

	private List<ConfigDataEnvironmentContributor> asContributors(
			Map<ConfigDataResolutionResult, ConfigData> imported) {
		List<ConfigDataEnvironmentContributor> contributors = new ArrayList<>(imported.size() * 5);
		imported.forEach((resolutionResult, data) -> {
			ConfigDataLocation location = resolutionResult.getLocation();
			ConfigDataResource resource = resolutionResult.getResource();
			boolean profileSpecific = resolutionResult.isProfileSpecific();
			if (data.getPropertySources().isEmpty()) {
				contributors.add(ConfigDataEnvironmentContributor.ofEmptyLocation(location, profileSpecific,
						this.conversionService));
			}
			else {
				for (int i = data.getPropertySources().size() - 1; i >= 0; i--) {
					contributors.add(ConfigDataEnvironmentContributor.ofUnboundImport(location, resource,
							profileSpecific, data, i, this.conversionService, this.environmentUpdateListener));
				}
			}
		});
		return Collections.unmodifiableList(contributors);
	}

Domain

Subdomains

Frequently Asked Questions

What does asContributors() do?
asContributors() is a function in the spring-boot codebase.
What does asContributors() call?
asContributors() calls 2 function(s): add, isEmpty.
What calls asContributors()?
asContributors() is called by 1 function(s): withProcessedImports.

Analyze Your Own Codebase

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

Try Supermodel Free