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

convertEnvironment() — spring-boot Function Reference

Architecture documentation for the convertEnvironment() function in EnvironmentConverter.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  f302683a_9353_4f1f_7412_08d2737610c7["convertEnvironment()"]
  f02f195f_19e6_7c15_a97c_f71c4d9aca26["convertEnvironmentIfNecessary()"]
  f02f195f_19e6_7c15_a97c_f71c4d9aca26 -->|calls| f302683a_9353_4f1f_7412_08d2737610c7
  fdd8af66_3100_29e8_3b79_f15cbb9a3457["createEnvironment()"]
  f302683a_9353_4f1f_7412_08d2737610c7 -->|calls| fdd8af66_3100_29e8_3b79_f15cbb9a3457
  77c7e6ec_a4dc_2b3d_62bd_59ac1827629c["copyPropertySources()"]
  f302683a_9353_4f1f_7412_08d2737610c7 -->|calls| 77c7e6ec_a4dc_2b3d_62bd_59ac1827629c
  style f302683a_9353_4f1f_7412_08d2737610c7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/EnvironmentConverter.java lines 81–88

	private ConfigurableEnvironment convertEnvironment(ConfigurableEnvironment environment,
			Class<? extends ConfigurableEnvironment> type) {
		ConfigurableEnvironment result = createEnvironment(type);
		result.setActiveProfiles(environment.getActiveProfiles());
		result.setConversionService(environment.getConversionService());
		copyPropertySources(environment, result);
		return result;
	}

Domain

Subdomains

Calls

Called By

  • convertEnvironmentIfNecessary()

Frequently Asked Questions

What does convertEnvironment() do?
convertEnvironment() is a function in the spring-boot codebase.
What does convertEnvironment() call?
convertEnvironment() calls 2 function(s): copyPropertySources, createEnvironment.
What calls convertEnvironment()?
convertEnvironment() is called by 1 function(s): convertEnvironmentIfNecessary.

Analyze Your Own Codebase

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

Try Supermodel Free