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

loadKeyAndValue() — spring-boot Function Reference

Architecture documentation for the loadKeyAndValue() function in OriginTrackedPropertiesLoader.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 6 called by 1

Entity Profile

Dependency Diagram

graph TD
  29618e87_6d5d_b620_c9e4_b6c387ac395b["loadKeyAndValue()"]
  00461c89_e8df_a118_712f_7d456733054e["load()"]
  00461c89_e8df_a118_712f_7d456733054e -->|calls| 29618e87_6d5d_b620_c9e4_b6c387ac395b
  ecd739e6_42b1_b082_8427_424b389a4a4a["loadKey()"]
  29618e87_6d5d_b620_c9e4_b6c387ac395b -->|calls| ecd739e6_42b1_b082_8427_424b389a4a4a
  6fc88197_3935_7e24_cccb_670a734d4e6d["length()"]
  29618e87_6d5d_b620_c9e4_b6c387ac395b -->|calls| 6fc88197_3935_7e24_cccb_670a734d4e6d
  123b63e1_15ae_84bb_22f3_d1146261bcbf["loadValue()"]
  29618e87_6d5d_b620_c9e4_b6c387ac395b -->|calls| 123b63e1_15ae_84bb_22f3_d1146261bcbf
  792cc8f8_4c4a_2446_45e8_3c1d117f4919["put()"]
  29618e87_6d5d_b620_c9e4_b6c387ac395b -->|calls| 792cc8f8_4c4a_2446_45e8_3c1d117f4919
  ae9763e6_5eb4_3aa5_2998_c4404d32096f["isEndOfLine()"]
  29618e87_6d5d_b620_c9e4_b6c387ac395b -->|calls| ae9763e6_5eb4_3aa5_2998_c4404d32096f
  9bd4aa4c_c96d_d7cf_c80a_7ccb5d80c0ab["read()"]
  29618e87_6d5d_b620_c9e4_b6c387ac395b -->|calls| 9bd4aa4c_c96d_d7cf_c80a_7ccb5d80c0ab
  style 29618e87_6d5d_b620_c9e4_b6c387ac395b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/env/OriginTrackedPropertiesLoader.java lines 117–136

	private void loadKeyAndValue(boolean expandLists, Document document, CharacterReader reader, StringBuilder buffer)
			throws IOException {
		String key = loadKey(buffer, reader).trim();
		if (expandLists && key.endsWith("[]")) {
			key = key.substring(0, key.length() - 2);
			int index = 0;
			do {
				OriginTrackedValue value = loadValue(buffer, reader, true);
				document.put(key + "[" + (index++) + "]", value);
				if (!reader.isEndOfLine()) {
					reader.read();
				}
			}
			while (!reader.isEndOfLine());
		}
		else {
			OriginTrackedValue value = loadValue(buffer, reader, false);
			document.put(key, value);
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does loadKeyAndValue() do?
loadKeyAndValue() is a function in the spring-boot codebase.
What does loadKeyAndValue() call?
loadKeyAndValue() calls 6 function(s): isEndOfLine, length, loadKey, loadValue, put, read.
What calls loadKeyAndValue()?
loadKeyAndValue() is called by 1 function(s): load.

Analyze Your Own Codebase

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

Try Supermodel Free