onContextClosedEvent() — spring-boot Function Reference
Architecture documentation for the onContextClosedEvent() function in LoggingApplicationListener.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 688a2394_0a3f_5c17_3263_c0cdcfee7c03["onContextClosedEvent()"] b564cced_f4c5_d5d5_9b54_9c77be901b07["onApplicationEvent()"] b564cced_f4c5_d5d5_9b54_9c77be901b07 -->|calls| 688a2394_0a3f_5c17_3263_c0cdcfee7c03 a2fb37ac_574b_708c_d871_a8afdb97bd2f["getParent()"] 688a2394_0a3f_5c17_3263_c0cdcfee7c03 -->|calls| a2fb37ac_574b_708c_d871_a8afdb97bd2f 3fb55023_b820_685a_be36_d2e879644ec9["cleanupLoggingSystem()"] 688a2394_0a3f_5c17_3263_c0cdcfee7c03 -->|calls| 3fb55023_b820_685a_be36_d2e879644ec9 231ec461_2955_6224_c613_7eccfcde366f["getApplicationContext()"] 688a2394_0a3f_5c17_3263_c0cdcfee7c03 -->|calls| 231ec461_2955_6224_c613_7eccfcde366f style 688a2394_0a3f_5c17_3263_c0cdcfee7c03 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java lines 269–275
private void onContextClosedEvent(ContextClosedEvent event) {
ApplicationContext applicationContext = event.getApplicationContext();
if (applicationContext.getParent() != null || applicationContext.containsBean(LOGGING_LIFECYCLE_BEAN_NAME)) {
return;
}
cleanupLoggingSystem();
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does onContextClosedEvent() do?
onContextClosedEvent() is a function in the spring-boot codebase.
What does onContextClosedEvent() call?
onContextClosedEvent() calls 3 function(s): cleanupLoggingSystem, getApplicationContext, getParent.
What calls onContextClosedEvent()?
onContextClosedEvent() 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