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

close() — spring-boot Function Reference

Architecture documentation for the close() function in SpringApplication.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 1 called by 11

Entity Profile

Dependency Diagram

graph TD
  7dbdd22f_6929_2540_3475_c564a673879d["close()"]
  6effd0c4_0207_6697_e91b_d163c77a8757["prepareContext()"]
  6effd0c4_0207_6697_e91b_d163c77a8757 -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  05022a74_e101_acfd_dd3f_ee1812535914["handleRunFailure()"]
  05022a74_e101_acfd_dd3f_ee1812535914 -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  57a68d81_383c_c6fb_7000_fdd00782a427["exit()"]
  57a68d81_383c_c6fb_7000_fdd00782a427 -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  efe57c36_3a0d_0c06_0195_7a1180969f3e["closeContext()"]
  efe57c36_3a0d_0c06_0195_7a1180969f3e -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  8322d061_31c5_8c15_dcee_233443d8582b["cleanup()"]
  8322d061_31c5_8c15_dcee_233443d8582b -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  19b58f82_9b4f_f8c2_df5b_8e2517710bba["loadWhenBindingWithParentContextShouldBind()"]
  19b58f82_9b4f_f8c2_df5b_8e2517710bba -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  4fdbdd28_a367_b445_5d6f_fde7e86fd305["resetContext()"]
  4fdbdd28_a367_b445_5d6f_fde7e86fd305 -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  41718f3b_d59f_916e_1f1f_9672b86140a2["cleanUp()"]
  41718f3b_d59f_916e_1f1f_9672b86140a2 -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  f377cc0b_237c_63cd_8ca3_c28188eb2850["clear()"]
  f377cc0b_237c_63cd_8ca3_c28188eb2850 -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  c473242c_f628_f21c_e566_916cadd4d5e3["closingChildContextDoesNotCleanUpLoggingSystem()"]
  c473242c_f628_f21c_e566_916cadd4d5e3 -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  9852c5a3_5ec1_6a92_df81_1e5047b0342d["cleanupOccursAfterWebServerShutdown()"]
  9852c5a3_5ec1_6a92_df81_1e5047b0342d -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  72aabe0c_b5ba_6e04_8191_e4febbc665df["close()"]
  7dbdd22f_6929_2540_3475_c564a673879d -->|calls| 72aabe0c_b5ba_6e04_8191_e4febbc665df
  style 7dbdd22f_6929_2540_3475_c564a673879d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 1472–1476

	private static void close(ApplicationContext context) {
		if (context instanceof ConfigurableApplicationContext closable) {
			closable.close();
		}
	}

Domain

Subdomains

Calls

  • close()

Frequently Asked Questions

What does close() do?
close() is a function in the spring-boot codebase.
What does close() call?
close() calls 1 function(s): close.
What calls close()?
close() is called by 11 function(s): cleanUp, cleanup, cleanupOccursAfterWebServerShutdown, clear, closeContext, closingChildContextDoesNotCleanUpLoggingSystem, exit, handleRunFailure, and 3 more.

Analyze Your Own Codebase

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

Try Supermodel Free