postProcessApplicationContext() — spring-boot Function Reference
Architecture documentation for the postProcessApplicationContext() function in SpringApplication.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 9dacb577_985f_f330_5af8_e845e130acd7["postProcessApplicationContext()"] 6effd0c4_0207_6697_e91b_d163c77a8757["prepareContext()"] 6effd0c4_0207_6697_e91b_d163c77a8757 -->|calls| 9dacb577_985f_f330_5af8_e845e130acd7 2fc2a1d0_ee25_1ffc_3748_29df0e961081["setResourceLoader()"] 9dacb577_985f_f330_5af8_e845e130acd7 -->|calls| 2fc2a1d0_ee25_1ffc_3748_29df0e961081 be22d695_81d3_ca24_90d4_9385a402a390["getClassLoader()"] 9dacb577_985f_f330_5af8_e845e130acd7 -->|calls| be22d695_81d3_ca24_90d4_9385a402a390 style 9dacb577_985f_f330_5af8_e845e130acd7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 591–607
protected void postProcessApplicationContext(ConfigurableApplicationContext context) {
if (this.beanNameGenerator != null) {
context.getBeanFactory()
.registerSingleton(AnnotationConfigUtils.CONFIGURATION_BEAN_NAME_GENERATOR, this.beanNameGenerator);
}
if (this.resourceLoader != null) {
if (context instanceof GenericApplicationContext genericApplicationContext) {
genericApplicationContext.setResourceLoader(this.resourceLoader);
}
if (context instanceof DefaultResourceLoader defaultResourceLoader) {
defaultResourceLoader.setClassLoader(this.resourceLoader.getClassLoader());
}
}
if (this.addConversionService) {
context.getBeanFactory().setConversionService(context.getEnvironment().getConversionService());
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does postProcessApplicationContext() do?
postProcessApplicationContext() is a function in the spring-boot codebase.
What does postProcessApplicationContext() call?
postProcessApplicationContext() calls 2 function(s): getClassLoader, setResourceLoader.
What calls postProcessApplicationContext()?
postProcessApplicationContext() is called by 1 function(s): prepareContext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free