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

registerShutdownHook() — spring-boot Function Reference

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

Function java GradlePlugin AotProcessing calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  ae5faf95_7421_6542_0efa_c1ef232e4866["registerShutdownHook()"]
  068996a4_9ad9_6b71_f2cb_f33286c88df5["registerShutdownHook()"]
  068996a4_9ad9_6b71_f2cb_f33286c88df5 -->|calls| ae5faf95_7421_6542_0efa_c1ef232e4866
  068996a4_9ad9_6b71_f2cb_f33286c88df5["registerShutdownHook()"]
  ae5faf95_7421_6542_0efa_c1ef232e4866 -->|calls| 068996a4_9ad9_6b71_f2cb_f33286c88df5
  2f52a2b0_73b0_9048_618c_5bed4f31ac43["run()"]
  ae5faf95_7421_6542_0efa_c1ef232e4866 -->|calls| 2f52a2b0_73b0_9048_618c_5bed4f31ac43
  style ae5faf95_7421_6542_0efa_c1ef232e4866 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 963–969

	@Test
	void registerShutdownHook() {
		SpringApplication application = new SpringApplication(ExampleConfig.class);
		application.setWebApplicationType(WebApplicationType.NONE);
		this.context = application.run();
		assertThat(SpringApplicationShutdownHookInstance.get()).registeredApplicationContext(this.context);
	}

Domain

Subdomains

Calls

  • registerShutdownHook()
  • run()

Called By

  • registerShutdownHook()

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): registerShutdownHook, run.
What calls registerShutdownHook()?
registerShutdownHook() is called by 1 function(s): registerShutdownHook.

Analyze Your Own Codebase

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

Try Supermodel Free