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

initializersCreatedOnce() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7d1e8ded_e24f_3ca0_8f79_552de5d59039["initializersCreatedOnce()"]
  3dc59be6_081a_34fd_0727_a7b4669b8750["assertThat()"]
  7d1e8ded_e24f_3ca0_8f79_552de5d59039 -->|calls| 3dc59be6_081a_34fd_0727_a7b4669b8750
  0e01e74c_b78d_7cb6_4236_a7a3c9e8c95a["getInitializers()"]
  7d1e8ded_e24f_3ca0_8f79_552de5d59039 -->|calls| 0e01e74c_b78d_7cb6_4236_a7a3c9e8c95a
  f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"]
  7d1e8ded_e24f_3ca0_8f79_552de5d59039 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42
  style 7d1e8ded_e24f_3ca0_8f79_552de5d59039 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/builder/SpringApplicationBuilderTests.java lines 290–296

	@Test
	void initializersCreatedOnce() {
		SpringApplicationBuilder application = new SpringApplicationBuilder(ExampleConfig.class)
			.web(WebApplicationType.NONE);
		this.context = application.run();
		assertThat(application.application().getInitializers()).hasSize(3);
	}

Domain

Subdomains

Frequently Asked Questions

What does initializersCreatedOnce() do?
initializersCreatedOnce() is a function in the spring-boot codebase.
What does initializersCreatedOnce() call?
initializersCreatedOnce() calls 3 function(s): assertThat, getInitializers, run.

Analyze Your Own Codebase

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

Try Supermodel Free