shutdownApp() — spring-boot Function Reference
Architecture documentation for the shutdownApp() function in SpringApplicationAdminMXBeanRegistrarTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 8889ba9d_fde7_7c93_c008_3a9a1d97e0bc["shutdownApp()"] dc46a3f4_e969_eab8_a9b7_b18f895a1905["createObjectName()"] 8889ba9d_fde7_7c93_c008_3a9a1d97e0bc -->|calls| dc46a3f4_e969_eab8_a9b7_b18f895a1905 16b51c89_dde4_bfa7_4c6d_cd813dd33ba3["SpringApplication()"] 8889ba9d_fde7_7c93_c008_3a9a1d97e0bc -->|calls| 16b51c89_dde4_bfa7_4c6d_cd813dd33ba3 9fc735d3_f2de_a77c_c1a1_abf218992bd6["setWebApplicationType()"] 8889ba9d_fde7_7c93_c008_3a9a1d97e0bc -->|calls| 9fc735d3_f2de_a77c_c1a1_abf218992bd6 63a3eb36_b3c2_ca78_22e5_a4a4902febab["invokeShutdown()"] 8889ba9d_fde7_7c93_c008_3a9a1d97e0bc -->|calls| 63a3eb36_b3c2_ca78_22e5_a4a4902febab f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"] 8889ba9d_fde7_7c93_c008_3a9a1d97e0bc -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 style 8889ba9d_fde7_7c93_c008_3a9a1d97e0bc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/admin/SpringApplicationAdminMXBeanRegistrarTests.java lines 133–145
@Test
void shutdownApp() {
final ObjectName objectName = createObjectName(OBJECT_NAME);
SpringApplication application = new SpringApplication(Config.class);
application.setWebApplicationType(WebApplicationType.NONE);
this.context = application.run();
assertThat(this.context.isRunning()).isTrue();
invokeShutdown(objectName);
assertThat(this.context.isRunning()).isFalse();
// JMX cleanup
assertThatExceptionOfType(InstanceNotFoundException.class)
.isThrownBy(() -> this.mBeanServer.getObjectInstance(objectName));
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does shutdownApp() do?
shutdownApp() is a function in the spring-boot codebase.
What does shutdownApp() call?
shutdownApp() calls 5 function(s): SpringApplication, createObjectName, invokeShutdown, run, setWebApplicationType.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free