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

writeSourceMetadata() — spring-boot Function Reference

Architecture documentation for the writeSourceMetadata() function in ConfigurationMetadataAnnotationProcessor.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  44c23dac_6535_919c_a11b_c6e8c2825474["writeSourceMetadata()"]
  196a9cf5_3a28_ecb0_f088_06da291eb5c4["process()"]
  196a9cf5_3a28_ecb0_f088_06da291eb5c4 -->|calls| 44c23dac_6535_919c_a11b_c6e8c2825474
  b8be65bb_6bc5_175d_3854_533a7f00720f["mergeAdditionalMetadata()"]
  44c23dac_6535_919c_a11b_c6e8c2825474 -->|calls| b8be65bb_6bc5_175d_3854_533a7f00720f
  3e2eac15_7f39_6aeb_3a4b_d1c5c5f5fad7["removeIgnored()"]
  44c23dac_6535_919c_a11b_c6e8c2825474 -->|calls| 3e2eac15_7f39_6aeb_3a4b_d1c5c5f5fad7
  c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239["getItems()"]
  44c23dac_6535_919c_a11b_c6e8c2825474 -->|calls| c8c9e7f6_e856_4711_6fe7_b1c2aeb3d239
  180197ca_8042_db1a_8956_57c96d9a7062["writeMetadata()"]
  44c23dac_6535_919c_a11b_c6e8c2825474 -->|calls| 180197ca_8042_db1a_8956_57c96d9a7062
  style 44c23dac_6535_919c_a11b_c6e8c2825474 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessor.java lines 394–403

	protected void writeSourceMetadata() throws Exception {
		for (TypeElement sourceType : this.metadataCollectors.getSourceTypes()) {
			ConfigurationMetadata metadata = this.metadataCollectors.getMetadataCollector(sourceType).getMetadata();
			metadata = mergeAdditionalMetadata(metadata, () -> this.metadataStore.readAdditionalMetadata(sourceType));
			removeIgnored(metadata);
			if (!metadata.getItems().isEmpty()) {
				this.metadataStore.writeMetadata(metadata, sourceType);
			}
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does writeSourceMetadata() do?
writeSourceMetadata() is a function in the spring-boot codebase.
What does writeSourceMetadata() call?
writeSourceMetadata() calls 4 function(s): getItems, mergeAdditionalMetadata, removeIgnored, writeMetadata.
What calls writeSourceMetadata()?
writeSourceMetadata() is called by 1 function(s): process.

Analyze Your Own Codebase

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

Try Supermodel Free