withProcessedImports() — spring-boot Function Reference
Architecture documentation for the withProcessedImports() function in ConfigDataEnvironmentContributors.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 2c598cf7_c89e_1a9a_34ad_544bfdb794e9["withProcessedImports()"] dd4529a3_27cc_df1f_8b22_e4537b1adcfe["getNextToProcess()"] 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| dd4529a3_27cc_df1f_8b22_e4537b1adcfe fd270091_f54a_e765_dc91_3b9fd92b841c["ConfigDataEnvironmentContributors()"] 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| fd270091_f54a_e765_dc91_3b9fd92b841c 06e5ffb1_a001_60f7_da2e_b685f67a9ab5["getRoot()"] 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| 06e5ffb1_a001_60f7_da2e_b685f67a9ab5 19eb2695_3ec0_97fb_cded_33c1170c31ea["ContributorConfigDataLocationResolverContext()"] 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| 19eb2695_3ec0_97fb_cded_33c1170c31ea af0a7ee2_722f_a2fd_b778_76640b5e3bbe["ContributorDataLoaderContext()"] 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| af0a7ee2_722f_a2fd_b778_76640b5e3bbe 0bed3467_4ef0_e6b2_96b4_6e2b76062046["getImportedMessage()"] 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| 0bed3467_4ef0_e6b2_96b4_6e2b76062046 10379bd7_d9a9_c449_5d9e_3d56fd5ff5c0["asContributors()"] 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| 10379bd7_d9a9_c449_5d9e_3d56fd5ff5c0 c90d60de_6e4d_b157_5121_acbc78d427f0["get()"] 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78["of()"] 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 -->|calls| 19a274bb_d9c7_a72c_7ab7_6a36d8c8fa78 style 2c598cf7_c89e_1a9a_34ad_544bfdb794e9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributors.java lines 105–140
ConfigDataEnvironmentContributors withProcessedImports(ConfigDataImporter importer,
@Nullable ConfigDataActivationContext activationContext) {
ImportPhase importPhase = ImportPhase.get(activationContext);
this.logger.trace(LogMessage.format("Processing imports for phase %s. %s", importPhase,
(activationContext != null) ? activationContext : "no activation context"));
ConfigDataEnvironmentContributors result = this;
int processed = 0;
while (true) {
ConfigDataEnvironmentContributor contributor = getNextToProcess(result, activationContext, importPhase);
if (contributor == null) {
this.logger.trace(LogMessage.format("Processed imports for of %d contributors", processed));
return result;
}
if (contributor.getKind() == Kind.UNBOUND_IMPORT) {
ConfigDataEnvironmentContributor bound = contributor.withBoundProperties(result, activationContext);
result = new ConfigDataEnvironmentContributors(this.logger, this.bootstrapContext,
result.getRoot().withReplacement(contributor, bound), this.conversionService,
this.environmentUpdateListener);
continue;
}
ConfigDataLocationResolverContext locationResolverContext = new ContributorConfigDataLocationResolverContext(
result, contributor, activationContext);
ConfigDataLoaderContext loaderContext = new ContributorDataLoaderContext(this);
List<ConfigDataLocation> imports = contributor.getImports();
this.logger.trace(LogMessage.format("Processing imports %s", imports));
Map<ConfigDataResolutionResult, ConfigData> imported = importer.resolveAndLoad(activationContext,
locationResolverContext, loaderContext, imports);
this.logger.trace(LogMessage.of(() -> getImportedMessage(imported.keySet())));
ConfigDataEnvironmentContributor contributorAndChildren = contributor.withChildren(importPhase,
asContributors(imported));
result = new ConfigDataEnvironmentContributors(this.logger, this.bootstrapContext,
result.getRoot().withReplacement(contributor, contributorAndChildren), this.conversionService,
this.environmentUpdateListener);
processed++;
}
}
Domain
Subdomains
Calls
- ConfigDataEnvironmentContributors()
- ContributorConfigDataLocationResolverContext()
- ContributorDataLoaderContext()
- asContributors()
- get()
- getImportedMessage()
- getNextToProcess()
- getRoot()
- of()
Source
Frequently Asked Questions
What does withProcessedImports() do?
withProcessedImports() is a function in the spring-boot codebase.
What does withProcessedImports() call?
withProcessedImports() calls 9 function(s): ConfigDataEnvironmentContributors, ContributorConfigDataLocationResolverContext, ContributorDataLoaderContext, asContributors, get, getImportedMessage, getNextToProcess, getRoot, and 1 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free