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

parentContextCreationWithChildShutdown() — spring-boot Function Reference

Architecture documentation for the parentContextCreationWithChildShutdown() function in SpringApplicationBuilderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  02b44c9e_0b51_df83_849f_0a9c8c529007["parentContextCreationWithChildShutdown()"]
  97fa5b9e_b816_70bd_8828_99b67bc8530a["getApplicationContext()"]
  02b44c9e_0b51_df83_849f_0a9c8c529007 -->|calls| 97fa5b9e_b816_70bd_8828_99b67bc8530a
  6e5afbf2_5ca2_d18c_1a56_76eb4b8b8221["setParent()"]
  02b44c9e_0b51_df83_849f_0a9c8c529007 -->|calls| 6e5afbf2_5ca2_d18c_1a56_76eb4b8b8221
  3dc59be6_081a_34fd_0727_a7b4669b8750["assertThat()"]
  02b44c9e_0b51_df83_849f_0a9c8c529007 -->|calls| 3dc59be6_081a_34fd_0727_a7b4669b8750
  a443e5ce_8b4c_f3b3_fc8c_67bbd9a1b6a3["get()"]
  02b44c9e_0b51_df83_849f_0a9c8c529007 -->|calls| a443e5ce_8b4c_f3b3_fc8c_67bbd9a1b6a3
  b4a12b98_0d93_def6_8af5_330a93642d49["registeredApplicationContext()"]
  02b44c9e_0b51_df83_849f_0a9c8c529007 -->|calls| b4a12b98_0d93_def6_8af5_330a93642d49
  89cfa04a_3922_680e_945d_5b4338252cc7["run()"]
  02b44c9e_0b51_df83_849f_0a9c8c529007 -->|calls| 89cfa04a_3922_680e_945d_5b4338252cc7
  style 02b44c9e_0b51_df83_849f_0a9c8c529007 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/builder/SpringApplicationBuilderTests.java lines 168–178

	@Test
	void parentContextCreationWithChildShutdown() {
		SpringApplicationBuilder application = new SpringApplicationBuilder(ChildConfig.class)
			.contextFactory(ApplicationContextFactory.ofContextClass(SpyApplicationContext.class))
			.registerShutdownHook(true);
		application.parent(ExampleConfig.class);
		this.context = application.run();
		then(((SpyApplicationContext) this.context).getApplicationContext()).should()
			.setParent(any(ApplicationContext.class));
		assertThat(SpringApplicationShutdownHookInstance.get()).registeredApplicationContext(this.context);
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does parentContextCreationWithChildShutdown() do?
parentContextCreationWithChildShutdown() is a function in the spring-boot codebase.
What does parentContextCreationWithChildShutdown() call?
parentContextCreationWithChildShutdown() calls 6 function(s): assertThat, get, getApplicationContext, registeredApplicationContext, run, setParent.

Analyze Your Own Codebase

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

Try Supermodel Free