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

expandProfiles() — spring-boot Function Reference

Architecture documentation for the expandProfiles() function in Profiles.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 5 called by 1

Entity Profile

Dependency Diagram

graph TD
  8f1c6b28_be4a_c6c7_649c_a12f6e8021a8["expandProfiles()"]
  994d7355_9079_f3f8_1646_b7d0f4cc95b5["Profiles()"]
  994d7355_9079_f3f8_1646_b7d0f4cc95b5 -->|calls| 8f1c6b28_be4a_c6c7_649c_a12f6e8021a8
  6bedaa7b_0853_1ec9_32a6_42cb592b9325["asReversedList()"]
  8f1c6b28_be4a_c6c7_649c_a12f6e8021a8 -->|calls| 6bedaa7b_0853_1ec9_32a6_42cb592b9325
  723faf45_147b_9b0f_f957_9de88f8cbb17["isEmpty()"]
  8f1c6b28_be4a_c6c7_649c_a12f6e8021a8 -->|calls| 723faf45_147b_9b0f_f957_9de88f8cbb17
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  8f1c6b28_be4a_c6c7_649c_a12f6e8021a8 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  fe919649_c2f5_4a95_7a16_83620ff46401["asUniqueItemList()"]
  8f1c6b28_be4a_c6c7_649c_a12f6e8021a8 -->|calls| fe919649_c2f5_4a95_7a16_83620ff46401
  2240d92d_9377_14f7_d46a_dbbc4937f5d8["get()"]
  8f1c6b28_be4a_c6c7_649c_a12f6e8021a8 -->|calls| 2240d92d_9377_14f7_d46a_dbbc4937f5d8
  style 8f1c6b28_be4a_c6c7_649c_a12f6e8021a8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/config/Profiles.java lines 139–150

	private List<String> expandProfiles(@Nullable List<String> profiles) {
		Deque<String> stack = new ArrayDeque<>();
		asReversedList(profiles).forEach(stack::push);
		Set<String> expandedProfiles = new LinkedHashSet<>();
		while (!stack.isEmpty()) {
			String current = stack.pop();
			if (expandedProfiles.add(current)) {
				asReversedList(this.groups.get(current)).forEach(stack::push);
			}
		}
		return asUniqueItemList(expandedProfiles);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does expandProfiles() do?
expandProfiles() is a function in the spring-boot codebase.
What does expandProfiles() call?
expandProfiles() calls 5 function(s): add, asReversedList, asUniqueItemList, get, isEmpty.
What calls expandProfiles()?
expandProfiles() is called by 1 function(s): Profiles.

Analyze Your Own Codebase

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

Try Supermodel Free