registerApplicationContext() — spring-boot Function Reference
Architecture documentation for the registerApplicationContext() function in SpringApplicationShutdownHook.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 1e6d34b6_9183_aa22_5502_a7305d28ae9d["registerApplicationContext()"] 7cc412e1_973a_dcca_ed2d_69e63a73939e["addRuntimeShutdownHookIfNecessary()"] 1e6d34b6_9183_aa22_5502_a7305d28ae9d -->|calls| 7cc412e1_973a_dcca_ed2d_69e63a73939e fcd9b0c3_3fe0_5029_8df4_4ba0f747d6cd["assertNotInProgress()"] 1e6d34b6_9183_aa22_5502_a7305d28ae9d -->|calls| fcd9b0c3_3fe0_5029_8df4_4ba0f747d6cd dd5d716b_24e2_3ea8_6619_1f6ef0d0803c["add()"] 1e6d34b6_9183_aa22_5502_a7305d28ae9d -->|calls| dd5d716b_24e2_3ea8_6619_1f6ef0d0803c style 1e6d34b6_9183_aa22_5502_a7305d28ae9d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationShutdownHook.java lines 78–85
void registerApplicationContext(ConfigurableApplicationContext context) {
addRuntimeShutdownHookIfNecessary();
synchronized (SpringApplicationShutdownHook.class) {
assertNotInProgress();
context.addApplicationListener(this.contextCloseListener);
this.contexts.add(context);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does registerApplicationContext() do?
registerApplicationContext() is a function in the spring-boot codebase.
What does registerApplicationContext() call?
registerApplicationContext() calls 3 function(s): add, addRuntimeShutdownHookIfNecessary, assertNotInProgress.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free