getIncludedProfiles() — spring-boot Function Reference
Architecture documentation for the getIncludedProfiles() function in ConfigDataEnvironment.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 92915ccd_e778_0255_307b_110eec0980aa["getIncludedProfiles()"] b51c4ada_4659_cf4b_db08_796eaec2c765["withProfiles()"] b51c4ada_4659_cf4b_db08_796eaec2c765 -->|calls| 92915ccd_e778_0255_307b_110eec0980aa bdf1886c_19f9_9cc1_5bff_886f1b1e2835["Binder()"] 92915ccd_e778_0255_307b_110eec0980aa -->|calls| bdf1886c_19f9_9cc1_5bff_886f1b1e2835 8297d150_846a_4cc4_47ca_e6d5a70497f3["bind()"] 92915ccd_e778_0255_307b_110eec0980aa -->|calls| 8297d150_846a_4cc4_47ca_e6d5a70497f3 c90d60de_6e4d_b157_5121_acbc78d427f0["get()"] 92915ccd_e778_0255_307b_110eec0980aa -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0 style 92915ccd_e778_0255_307b_110eec0980aa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironment.java lines 295–317
private Collection<? extends String> getIncludedProfiles(ConfigDataEnvironmentContributors contributors,
ConfigDataActivationContext activationContext) {
PlaceholdersResolver placeholdersResolver = new ConfigDataEnvironmentContributorPlaceholdersResolver(
contributors, activationContext, null, true, this.environment.getConversionService());
Set<String> result = new LinkedHashSet<>();
for (ConfigDataEnvironmentContributor contributor : contributors) {
ConfigurationPropertySource source = contributor.getConfigurationPropertySource();
if (source != null && !contributor.hasConfigDataOption(ConfigData.Option.IGNORE_PROFILES)) {
Binder binder = new Binder(Collections.singleton(source), placeholdersResolver);
binder.bind(Profiles.INCLUDE_PROFILES, STRING_LIST, ProfilesValidator.get(binder))
.ifBound((includes) -> {
if (!contributor.isActive(activationContext)) {
InactiveConfigDataAccessException.throwIfPropertyFound(contributor,
Profiles.INCLUDE_PROFILES);
InactiveConfigDataAccessException.throwIfPropertyFound(contributor,
Profiles.INCLUDE_PROFILES.append("[0]"));
}
result.addAll(includes);
});
}
}
return result;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getIncludedProfiles() do?
getIncludedProfiles() is a function in the spring-boot codebase.
What does getIncludedProfiles() call?
getIncludedProfiles() calls 3 function(s): Binder, bind, get.
What calls getIncludedProfiles()?
getIncludedProfiles() is called by 1 function(s): withProfiles.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free