onApplicationEnvironmentPreparedEvent() — spring-boot Function Reference
Architecture documentation for the onApplicationEnvironmentPreparedEvent() function in EnvironmentPostProcessorApplicationListener.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 52b61d79_82f7_0eb2_effc_f5228b03edd1["onApplicationEnvironmentPreparedEvent()"] 89d005ad_7ddf_20e1_6b28_6a7636230153["onApplicationEvent()"] 89d005ad_7ddf_20e1_6b28_6a7636230153 -->|calls| 52b61d79_82f7_0eb2_effc_f5228b03edd1 4baf3fc6_621e_dcfc_aa6f_e5b082e8d6d7["getEnvironment()"] 52b61d79_82f7_0eb2_effc_f5228b03edd1 -->|calls| 4baf3fc6_621e_dcfc_aa6f_e5b082e8d6d7 9e5cfe99_fb0f_5eaa_86d0_87c68a59eab9["getEnvironmentPostProcessors()"] 52b61d79_82f7_0eb2_effc_f5228b03edd1 -->|calls| 9e5cfe99_fb0f_5eaa_86d0_87c68a59eab9 0bc20766_5d72_c232_7d89_04f0be2a2055["getResourceLoader()"] 52b61d79_82f7_0eb2_effc_f5228b03edd1 -->|calls| 0bc20766_5d72_c232_7d89_04f0be2a2055 d864f877_86bb_ed36_1f8e_bead3d2673be["getBootstrapContext()"] 52b61d79_82f7_0eb2_effc_f5228b03edd1 -->|calls| d864f877_86bb_ed36_1f8e_bead3d2673be 61b5eb2a_0b07_03e0_e756_9db25a4522b9["addAotGeneratedEnvironmentPostProcessorIfNecessary()"] 52b61d79_82f7_0eb2_effc_f5228b03edd1 -->|calls| 61b5eb2a_0b07_03e0_e756_9db25a4522b9 style 52b61d79_82f7_0eb2_effc_f5228b03edd1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/support/EnvironmentPostProcessorApplicationListener.java lines 130–139
private void onApplicationEnvironmentPreparedEvent(ApplicationEnvironmentPreparedEvent event) {
ConfigurableEnvironment environment = event.getEnvironment();
SpringApplication application = event.getSpringApplication();
List<EnvironmentPostProcessor> postProcessors = getEnvironmentPostProcessors(application.getResourceLoader(),
event.getBootstrapContext());
addAotGeneratedEnvironmentPostProcessorIfNecessary(postProcessors, application);
for (EnvironmentPostProcessor postProcessor : postProcessors) {
postProcessor.postProcessEnvironment(environment, application);
}
}
Domain
Subdomains
Calls
- addAotGeneratedEnvironmentPostProcessorIfNecessary()
- getBootstrapContext()
- getEnvironment()
- getEnvironmentPostProcessors()
- getResourceLoader()
Called By
Source
Frequently Asked Questions
What does onApplicationEnvironmentPreparedEvent() do?
onApplicationEnvironmentPreparedEvent() is a function in the spring-boot codebase.
What does onApplicationEnvironmentPreparedEvent() call?
onApplicationEnvironmentPreparedEvent() calls 5 function(s): addAotGeneratedEnvironmentPostProcessorIfNecessary, getBootstrapContext, getEnvironment, getEnvironmentPostProcessors, getResourceLoader.
What calls onApplicationEnvironmentPreparedEvent()?
onApplicationEnvironmentPreparedEvent() is called by 1 function(s): onApplicationEvent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free