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

getEnvironment() — spring-boot Function Reference

Architecture documentation for the getEnvironment() function in SpringApplicationTests.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 9

Entity Profile

Dependency Diagram

graph TD
  b51c2a0a_c091_ca23_6e06_a954e1fee03d["getEnvironment()"]
  e8fc9fe7_ebb9_2613_eef2_de272b49eaf7["specificApplicationContextInitializer()"]
  e8fc9fe7_ebb9_2613_eef2_de272b49eaf7 -->|calls| b51c2a0a_c091_ca23_6e06_a954e1fee03d
  389aedf5_23cd_5dfe_aa12_fffeee5c2f2b["contextRefreshedEventListener()"]
  389aedf5_23cd_5dfe_aa12_fffeee5c2f2b -->|calls| b51c2a0a_c091_ca23_6e06_a954e1fee03d
  47c2c64d_017b_19a9_5ed9_ec3be650335d["contextUsesApplicationConversionService()"]
  47c2c64d_017b_19a9_5ed9_ec3be650335d -->|calls| b51c2a0a_c091_ca23_6e06_a954e1fee03d
  61d64757_b6de_f465_f818_96c1373017c8["contextWhenHasAddConversionServiceFalseUsesRegularConversionService()"]
  61d64757_b6de_f465_f818_96c1373017c8 -->|calls| b51c2a0a_c091_ca23_6e06_a954e1fee03d
  9b409b96_c4f2_ff63_bbdb_a7e50a940269["defaultCommandLineArgs()"]
  9b409b96_c4f2_ff63_bbdb_a7e50a940269 -->|calls| b51c2a0a_c091_ca23_6e06_a954e1fee03d
  6783843b_836b_ffe1_7b56_c6df6bf9d1bc["defaultPropertiesShouldBeMerged()"]
  6783843b_836b_ffe1_7b56_c6df6bf9d1bc -->|calls| b51c2a0a_c091_ca23_6e06_a954e1fee03d
  1f58f897_1e90_c6fa_d932_2dad8093cd6e["nonWebApplicationConfiguredViaAPropertyHasTheCorrectTypeOfContextAndEnvironment()"]
  1f58f897_1e90_c6fa_d932_2dad8093cd6e -->|calls| b51c2a0a_c091_ca23_6e06_a954e1fee03d
  d2dcf528_fe28_9541_9412_e4a961d21f4a["relaxedBindingShouldWorkBeforeEnvironmentIsPrepared()"]
  d2dcf528_fe28_9541_9412_e4a961d21f4a -->|calls| b51c2a0a_c091_ca23_6e06_a954e1fee03d
  8a6af7be_3d3d_4e7e_6c01_0cb0197d99d7["movesConfigClassPropertySourcesToEnd()"]
  8a6af7be_3d3d_4e7e_6c01_0cb0197d99d7 -->|calls| b51c2a0a_c091_ca23_6e06_a954e1fee03d
  4baf3fc6_621e_dcfc_aa6f_e5b082e8d6d7["getEnvironment()"]
  b51c2a0a_c091_ca23_6e06_a954e1fee03d -->|calls| 4baf3fc6_621e_dcfc_aa6f_e5b082e8d6d7
  style b51c2a0a_c091_ca23_6e06_a954e1fee03d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 177–182

	private Environment getEnvironment() {
		if (this.context != null) {
			return this.context.getEnvironment();
		}
		throw new IllegalStateException("Could not obtain Environment");
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does getEnvironment() do?
getEnvironment() is a function in the spring-boot codebase.
What does getEnvironment() call?
getEnvironment() calls 1 function(s): getEnvironment.
What calls getEnvironment()?
getEnvironment() is called by 9 function(s): contextRefreshedEventListener, contextUsesApplicationConversionService, contextWhenHasAddConversionServiceFalseUsesRegularConversionService, defaultCommandLineArgs, defaultPropertiesShouldBeMerged, movesConfigClassPropertySourcesToEnd, nonWebApplicationConfiguredViaAPropertyHasTheCorrectTypeOfContextAndEnvironment, relaxedBindingShouldWorkBeforeEnvironmentIsPrepared, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free