Home / Function/ registerShutdownHook() — spring-boot Function Reference

registerShutdownHook() — spring-boot Function Reference

Architecture documentation for the registerShutdownHook() function in LoggingApplicationListener.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  aac53ca1_1c99_728c_a9f5_e1db56228ccd["registerShutdownHook()"]
  f4e1cf64_bf89_e6b9_13ed_f9a2b3a10686["registerShutdownHookIfNecessary()"]
  f4e1cf64_bf89_e6b9_13ed_f9a2b3a10686 -->|calls| aac53ca1_1c99_728c_a9f5_e1db56228ccd
  b2d27c5f_1966_e755_89ae_efc4072817f8["getShutdownHandlers()"]
  aac53ca1_1c99_728c_a9f5_e1db56228ccd -->|calls| b2d27c5f_1966_e755_89ae_efc4072817f8
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  aac53ca1_1c99_728c_a9f5_e1db56228ccd -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  style aac53ca1_1c99_728c_a9f5_e1db56228ccd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java lines 434–436

	void registerShutdownHook(Runnable shutdownHandler) {
		SpringApplication.getShutdownHandlers().add(shutdownHandler);
	}

Domain

Subdomains

Calls

  • add()
  • getShutdownHandlers()

Frequently Asked Questions

What does registerShutdownHook() do?
registerShutdownHook() is a function in the spring-boot codebase.
What does registerShutdownHook() call?
registerShutdownHook() calls 2 function(s): add, getShutdownHandlers.
What calls registerShutdownHook()?
registerShutdownHook() is called by 1 function(s): registerShutdownHookIfNecessary.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free