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

Profiles() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  994d7355_9079_f3f8_1646_b7d0f4cc95b5["Profiles()"]
  8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"]
  994d7355_9079_f3f8_1646_b7d0f4cc95b5 -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3
  d7827a32_4941_2929_db16_22be84793977["orElseGet()"]
  994d7355_9079_f3f8_1646_b7d0f4cc95b5 -->|calls| d7827a32_4941_2929_db16_22be84793977
  8f1c6b28_be4a_c6c7_649c_a12f6e8021a8["expandProfiles()"]
  994d7355_9079_f3f8_1646_b7d0f4cc95b5 -->|calls| 8f1c6b28_be4a_c6c7_649c_a12f6e8021a8
  175e6983_f462_422e_66ee_6317c83d2b44["getActivatedProfiles()"]
  994d7355_9079_f3f8_1646_b7d0f4cc95b5 -->|calls| 175e6983_f462_422e_66ee_6317c83d2b44
  ea6dd4f5_9c30_fad5_6873_483fa6ca0913["getDefaultProfiles()"]
  994d7355_9079_f3f8_1646_b7d0f4cc95b5 -->|calls| ea6dd4f5_9c30_fad5_6873_483fa6ca0913
  2240d92d_9377_14f7_d46a_dbbc4937f5d8["get()"]
  994d7355_9079_f3f8_1646_b7d0f4cc95b5 -->|calls| 2240d92d_9377_14f7_d46a_dbbc4937f5d8
  style 994d7355_9079_f3f8_1646_b7d0f4cc95b5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	Profiles(Environment environment, Binder binder, @Nullable Collection<String> additionalProfiles) {
		ProfilesValidator validator = ProfilesValidator.get(binder);
		if (additionalProfiles != null) {
			validator.validate(additionalProfiles, () -> "Invalid profile property value found in additional profiles");
		}
		this.groups = binder.bind("spring.profiles.group", STRING_STRINGS_MAP, validator)
			.orElseGet(LinkedMultiValueMap::new);
		this.activeProfiles = expandProfiles(getActivatedProfiles(environment, binder, validator, additionalProfiles));
		this.defaultProfiles = expandProfiles(getDefaultProfiles(environment, binder, validator));
	}

Domain

Subdomains

Frequently Asked Questions

What does Profiles() do?
Profiles() is a function in the spring-boot codebase.
What does Profiles() call?
Profiles() calls 6 function(s): bind, expandProfiles, get, getActivatedProfiles, getDefaultProfiles, orElseGet.

Analyze Your Own Codebase

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

Try Supermodel Free