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

addProperty() — spring-boot Function Reference

Architecture documentation for the addProperty() function in ConfigTreePropertySourceTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  944b0032_423b_56b2_c373_6241fee63a68["addProperty()"]
  3a617b68_1663_8699_4ea5_aff46a56b8ca["getPropertyNamesWhenLowercaseReturnsPropertyNames()"]
  3a617b68_1663_8699_4ea5_aff46a56b8ca -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  ab5cfd22_c0ba_c511_cfce_e85b5928e23e["getPropertyWhenNotAlwaysReadIgnoresUpdates()"]
  ab5cfd22_c0ba_c511_cfce_e85b5928e23e -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  9622ee87_ab5b_abf3_133b_62da0eb07adb["getPropertyWhenAlwaysReadReflectsUpdates()"]
  9622ee87_ab5b_abf3_133b_62da0eb07adb -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  dc63fb8c_e952_df69_33ae_2e5c349cba29["getPropertyWhenLowercaseReturnsValue()"]
  dc63fb8c_e952_df69_33ae_2e5c349cba29 -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  d91fd2ea_221a_3b91_43c4_7032261dca23["getPropertyAsStringWhenMultiLinePropertyReturnsNonTrimmed()"]
  d91fd2ea_221a_3b91_43c4_7032261dca23 -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  77fbd582_2e97_1478_f222_e1ad82363ec7["getPropertyAsStringWhenPropertyEndsWithNewLineReturnsTrimmed()"]
  77fbd582_2e97_1478_f222_e1ad82363ec7 -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  576432cc_79c6_fb19_222d_c93f2d806adf["getPropertyAsStringWhenPropertyEndsWithWindowsNewLineReturnsTrimmed()"]
  576432cc_79c6_fb19_222d_c93f2d806adf -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  fd2b653f_0fed_4b6a_7ecd_f78b35dc6b35["getFlatPropertySource()"]
  fd2b653f_0fed_4b6a_7ecd_f78b35dc6b35 -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  2fa8635a_a466_1c6b_0d5f_ffef27018bc0["getSymlinkedFlatPropertySource()"]
  2fa8635a_a466_1c6b_0d5f_ffef27018bc0 -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  e665a73a_ed47_bccb_eb6f_707708696cb5["addNested()"]
  e665a73a_ed47_bccb_eb6f_707708696cb5 -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  638587da_1584_cf70_f0a4_2b1798166469["getSymlinkedNestedPropertySource()"]
  638587da_1584_cf70_f0a4_2b1798166469 -->|calls| 944b0032_423b_56b2_c373_6241fee63a68
  style 944b0032_423b_56b2_c373_6241fee63a68 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/env/ConfigTreePropertySourceTests.java lines 295–299

	private void addProperty(String path, String value) throws IOException {
		File file = this.directory.resolve(path).toFile();
		file.getParentFile().mkdirs();
		FileCopyUtils.copy(value.getBytes(StandardCharsets.UTF_8), file);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does addProperty() do?
addProperty() is a function in the spring-boot codebase.
What calls addProperty()?
addProperty() is called by 11 function(s): addNested, getFlatPropertySource, getPropertyAsStringWhenMultiLinePropertyReturnsNonTrimmed, getPropertyAsStringWhenPropertyEndsWithNewLineReturnsTrimmed, getPropertyAsStringWhenPropertyEndsWithWindowsNewLineReturnsTrimmed, getPropertyNamesWhenLowercaseReturnsPropertyNames, getPropertyWhenAlwaysReadReflectsUpdates, getPropertyWhenLowercaseReturnsValue, and 3 more.

Analyze Your Own Codebase

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

Try Supermodel Free