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

getApplicationContext() — spring-boot Function Reference

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

Function java GradlePlugin RunTasks calls 2 called by 5

Entity Profile

Dependency Diagram

graph TD
  671e1691_b19e_81ae_0e17_60828a703d9c["getApplicationContext()"]
  231ec461_2955_6224_c613_7eccfcde366f["getApplicationContext()"]
  231ec461_2955_6224_c613_7eccfcde366f -->|calls| 671e1691_b19e_81ae_0e17_60828a703d9c
  63768f6f_b5a1_8af9_8f51_d79bb2e7d2b6["getApplicationContext()"]
  63768f6f_b5a1_8af9_8f51_d79bb2e7d2b6 -->|calls| 671e1691_b19e_81ae_0e17_60828a703d9c
  44711f33_c4bd_a63a_e684_c372c5a7d28a["getApplicationContext()"]
  44711f33_c4bd_a63a_e684_c372c5a7d28a -->|calls| 671e1691_b19e_81ae_0e17_60828a703d9c
  78f2c659_7dab_51ec_5820_d1f66f9fbba7["getApplicationContext()"]
  78f2c659_7dab_51ec_5820_d1f66f9fbba7 -->|calls| 671e1691_b19e_81ae_0e17_60828a703d9c
  a663e0da_a590_0428_3ec7_5915632eae07["getApplicationContext()"]
  a663e0da_a590_0428_3ec7_5915632eae07 -->|calls| 671e1691_b19e_81ae_0e17_60828a703d9c
  231ec461_2955_6224_c613_7eccfcde366f["getApplicationContext()"]
  671e1691_b19e_81ae_0e17_60828a703d9c -->|calls| 231ec461_2955_6224_c613_7eccfcde366f
  87f0b21f_3955_8dcc_cc55_9c6321893f96["get()"]
  671e1691_b19e_81ae_0e17_60828a703d9c -->|calls| 87f0b21f_3955_8dcc_cc55_9c6321893f96
  style 671e1691_b19e_81ae_0e17_60828a703d9c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 1559–1567

			@Override
			public ConfigurableApplicationContext getApplicationContext() {
				List<ConfigurableApplicationContext> rootContexts = this.contexts.stream()
					.filter((context) -> context.getParent() == null)
					.toList();
				Assert.state(!rootContexts.isEmpty(), "No root application context located");
				Assert.state(rootContexts.size() == 1, "No unique root application context located");
				return rootContexts.get(0);
			}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getApplicationContext() do?
getApplicationContext() is a function in the spring-boot codebase.
What does getApplicationContext() call?
getApplicationContext() calls 2 function(s): get, getApplicationContext.
What calls getApplicationContext()?
getApplicationContext() is called by 5 function(s): getApplicationContext, getApplicationContext, getApplicationContext, getApplicationContext, getApplicationContext.

Analyze Your Own Codebase

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

Try Supermodel Free