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

moveProfileSpecific() — spring-boot Function Reference

Architecture documentation for the moveProfileSpecific() function in ConfigDataEnvironmentContributor.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  7fdf7a60_5ce8_2732_5bcc_e698c9879c4b["moveProfileSpecific()"]
  3952a8a7_1d48_6c84_72f5_4679d59e0e17["withChildren()"]
  3952a8a7_1d48_6c84_72f5_4679d59e0e17 -->|calls| 7fdf7a60_5ce8_2732_5bcc_e698c9879c4b
  c90d60de_6e4d_b157_5121_acbc78d427f0["get()"]
  7fdf7a60_5ce8_2732_5bcc_e698c9879c4b -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0
  9731b8ec_ad6e_21b4_2066_143916402074["hasAnyProfileSpecificChildren()"]
  7fdf7a60_5ce8_2732_5bcc_e698c9879c4b -->|calls| 9731b8ec_ad6e_21b4_2066_143916402074
  f2b62ddb_dc4b_fc67_e8f2_89e7a4b6337b["moveProfileSpecificChildren()"]
  7fdf7a60_5ce8_2732_5bcc_e698c9879c4b -->|calls| f2b62ddb_dc4b_fc67_e8f2_89e7a4b6337b
  style 7fdf7a60_5ce8_2732_5bcc_e698c9879c4b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributor.java lines 283–296

	private void moveProfileSpecific(Map<ImportPhase, List<ConfigDataEnvironmentContributor>> children) {
		List<ConfigDataEnvironmentContributor> before = children.get(ImportPhase.BEFORE_PROFILE_ACTIVATION);
		if (!hasAnyProfileSpecificChildren(before)) {
			return;
		}
		List<ConfigDataEnvironmentContributor> updatedBefore = new ArrayList<>(before.size());
		List<ConfigDataEnvironmentContributor> updatedAfter = new ArrayList<>();
		for (ConfigDataEnvironmentContributor contributor : before) {
			updatedBefore.add(moveProfileSpecificChildren(contributor, updatedAfter));
		}
		updatedAfter.addAll(children.getOrDefault(ImportPhase.AFTER_PROFILE_ACTIVATION, Collections.emptyList()));
		children.put(ImportPhase.BEFORE_PROFILE_ACTIVATION, updatedBefore);
		children.put(ImportPhase.AFTER_PROFILE_ACTIVATION, updatedAfter);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does moveProfileSpecific() do?
moveProfileSpecific() is a function in the spring-boot codebase.
What does moveProfileSpecific() call?
moveProfileSpecific() calls 3 function(s): get, hasAnyProfileSpecificChildren, moveProfileSpecificChildren.
What calls moveProfileSpecific()?
moveProfileSpecific() is called by 1 function(s): withChildren.

Analyze Your Own Codebase

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

Try Supermodel Free