add() — spring-boot Function Reference
Architecture documentation for the add() function in SpringApplicationShutdownHook.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD dd5d716b_24e2_3ea8_6619_1f6ef0d0803c["add()"] 1e6d34b6_9183_aa22_5502_a7305d28ae9d["registerApplicationContext()"] 1e6d34b6_9183_aa22_5502_a7305d28ae9d -->|calls| dd5d716b_24e2_3ea8_6619_1f6ef0d0803c ab428a78_5d47_dff0_3b74_9e0af5c5d16a["onApplicationEvent()"] ab428a78_5d47_dff0_3b74_9e0af5c5d16a -->|calls| dd5d716b_24e2_3ea8_6619_1f6ef0d0803c 7cc412e1_973a_dcca_ed2d_69e63a73939e["addRuntimeShutdownHookIfNecessary()"] dd5d716b_24e2_3ea8_6619_1f6ef0d0803c -->|calls| 7cc412e1_973a_dcca_ed2d_69e63a73939e fcd9b0c3_3fe0_5029_8df4_4ba0f747d6cd["assertNotInProgress()"] dd5d716b_24e2_3ea8_6619_1f6ef0d0803c -->|calls| fcd9b0c3_3fe0_5029_8df4_4ba0f747d6cd style dd5d716b_24e2_3ea8_6619_1f6ef0d0803c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/SpringApplicationShutdownHook.java lines 178–186
@Override
public void add(Runnable action) {
Assert.notNull(action, "'action' must not be null");
addRuntimeShutdownHookIfNecessary();
synchronized (SpringApplicationShutdownHook.class) {
assertNotInProgress();
this.actions.add(new Handler(action));
}
}
Domain
Subdomains
Called By
- onApplicationEvent()
- registerApplicationContext()
Source
Frequently Asked Questions
What does add() do?
add() is a function in the spring-boot codebase.
What does add() call?
add() calls 2 function(s): addRuntimeShutdownHookIfNecessary, assertNotInProgress.
What calls add()?
add() is called by 2 function(s): onApplicationEvent, registerApplicationContext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free