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

addPropertiesToEnvironment() — spring-boot Function Reference

Architecture documentation for the addPropertiesToEnvironment() function in LoggingApplicationListenerTests.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 2 called by 29

Entity Profile

Dependency Diagram

graph TD
  e4941a37_d532_8edb_200f_24a620639c51["addPropertiesToEnvironment()"]
  95aa9c2f_e204_0970_bd4c_f18c4bd78626["overrideConfigLocation()"]
  95aa9c2f_e204_0970_bd4c_f18c4bd78626 -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  3822f26b_9847_43e2_c77b_59713d7e9db9["trailingWhitespaceInLoggingConfigShouldBeTrimmed()"]
  3822f26b_9847_43e2_c77b_59713d7e9db9 -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  f575aa33_8305_12d0_e896_c3ed56bfd07c["overrideConfigDoesNotExist()"]
  f575aa33_8305_12d0_e896_c3ed56bfd07c -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  29120080_cb86_fc70_f9b8_2068829b963d["azureDefaultLoggingConfigDoesNotCauseAFailure()"]
  29120080_cb86_fc70_f9b8_2068829b963d -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  559e67ac_60b4_c1d4_4c9a_74b3d749e1cf["tomcatNopLoggingConfigDoesNotCauseAFailure()"]
  559e67ac_60b4_c1d4_4c9a_74b3d749e1cf -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  29056d74_654e_a9ec_ae74_b4c735b607d8["overrideConfigBroken()"]
  29056d74_654e_a9ec_ae74_b4c735b607d8 -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  bab8be36_707c_90dc_862a_e4b4bca29f0b["addLogFileProperty()"]
  bab8be36_707c_90dc_862a_e4b4bca29f0b -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  6c1bc282_0d40_a83f_7c1b_cb72543bd8d3["addLogFilePropertyWithDefault()"]
  6c1bc282_0d40_a83f_7c1b_cb72543bd8d3 -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  da26f743_ecda_9dc0_eaae_71cd8ca73aef["addLogPathProperty()"]
  da26f743_ecda_9dc0_eaae_71cd8ca73aef -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  e565b3d9_458c_4c11_5835_b543e81d96a2["parseDebugArg()"]
  e565b3d9_458c_4c11_5835_b543e81d96a2 -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  14c966ea_5e79_8f66_0f1b_6154bfd4fb4f["parseDebugArgExpandGroups()"]
  14c966ea_5e79_8f66_0f1b_6154bfd4fb4f -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  86752818_3882_5efb_b896_357751fac740["parseTraceArg()"]
  86752818_3882_5efb_b896_357751fac740 -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  a178fe13_267c_0cb3_6d0e_0f68c4a47668["disableDebugTraceArg()"]
  a178fe13_267c_0cb3_6d0e_0f68c4a47668 -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  2934a062_26c0_777e_9183_1f5e8cc7a4a3["parseLevels()"]
  2934a062_26c0_777e_9183_1f5e8cc7a4a3 -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  style e4941a37_d532_8edb_200f_24a620639c51 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java lines 644–653

	private void addPropertiesToEnvironment(ConfigurableApplicationContext context, String... pairs) {
		ConfigurableEnvironment environment = context.getEnvironment();
		Map<String, Object> properties = new HashMap<>();
		for (String pair : pairs) {
			String[] split = pair.split("=", 2);
			properties.put(split[0], (split.length == 2) ? split[1] : "");
		}
		MapPropertySource propertySource = new MapPropertySource("logging-config", properties);
		environment.getPropertySources().addFirst(propertySource);
	}

Domain

Subdomains

Frequently Asked Questions

What does addPropertiesToEnvironment() do?
addPropertiesToEnvironment() is a function in the spring-boot codebase.
What does addPropertiesToEnvironment() call?
addPropertiesToEnvironment() calls 2 function(s): getEnvironment, put.
What calls addPropertiesToEnvironment()?
addPropertiesToEnvironment() is called by 29 function(s): addLogFileProperty, addLogFilePropertyWithDefault, addLogPathProperty, azureDefaultLoggingConfigDoesNotCauseAFailure, disableDebugTraceArg, environmentPropertiesIgnoreUnresolvablePlaceholders, environmentPropertiesResolvePlaceholders, logFilePropertiesCanReferenceSystemProperties, and 21 more.

Analyze Your Own Codebase

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

Try Supermodel Free