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

mergingOfAdditionalMetadata() — spring-boot Function Reference

Architecture documentation for the mergingOfAdditionalMetadata() function in MergeMetadataGenerationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  ee9541da_8bb3_a675_47cf_949f6bf69e04["mergingOfAdditionalMetadata()"]
  135fcb76_5f4d_6bcf_4ec3_690e10d8d879["JSONObject()"]
  ee9541da_8bb3_a675_47cf_949f6bf69e04 -->|calls| 135fcb76_5f4d_6bcf_4ec3_690e10d8d879
  6d05120f_bafe_634b_9167_dd868a05e8a2["JSONArray()"]
  ee9541da_8bb3_a675_47cf_949f6bf69e04 -->|calls| 6d05120f_bafe_634b_9167_dd868a05e8a2
  56afd5ff_85de_d8b5_5901_a76923fe9704["has()"]
  ee9541da_8bb3_a675_47cf_949f6bf69e04 -->|calls| 56afd5ff_85de_d8b5_5901_a76923fe9704
  a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc["withProperty()"]
  ee9541da_8bb3_a675_47cf_949f6bf69e04 -->|calls| a4041ee3_920f_3ffa_6d69_6e3bcd2c6cdc
  a7060ba0_7028_1911_946e_7c3090117119["fromSource()"]
  ee9541da_8bb3_a675_47cf_949f6bf69e04 -->|calls| a7060ba0_7028_1911_946e_7c3090117119
  0fcb93b3_4873_3258_b9e6_29138d183448["put()"]
  ee9541da_8bb3_a675_47cf_949f6bf69e04 -->|calls| 0fcb93b3_4873_3258_b9e6_29138d183448
  e8e90934_397b_b72b_06c2_bff3d0ed5ac5["getName()"]
  ee9541da_8bb3_a675_47cf_949f6bf69e04 -->|calls| e8e90934_397b_b72b_06c2_bff3d0ed5ac5
  style ee9541da_8bb3_a675_47cf_949f6bf69e04 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/MergeMetadataGenerationTests.java lines 221–235

	@Test
	void mergingOfAdditionalMetadata() throws Exception {
		JSONObject property = new JSONObject();
		property.put("name", "foo");
		property.put("type", "java.lang.String");
		property.put("sourceType", AdditionalMetadata.class.getName());
		JSONArray properties = new JSONArray();
		properties.put(property);
		JSONObject json = new JSONObject();
		json.put("properties", properties);
		String additionalMetadata = json.toString();
		ConfigurationMetadata metadata = compile(additionalMetadata, SimpleProperties.class);
		assertThat(metadata).has(Metadata.withProperty("simple.comparator"));
		assertThat(metadata).has(Metadata.withProperty("foo", String.class).fromSource(AdditionalMetadata.class));
	}

Domain

Subdomains

Frequently Asked Questions

What does mergingOfAdditionalMetadata() do?
mergingOfAdditionalMetadata() is a function in the spring-boot codebase.
What does mergingOfAdditionalMetadata() call?
mergingOfAdditionalMetadata() calls 7 function(s): JSONArray, JSONObject, fromSource, getName, has, put, withProperty.

Analyze Your Own Codebase

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

Try Supermodel Free