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

init() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  30816150_0bbd_661d_2ac8_414f5f3633cf["init()"]
  d143201a_aff2_8071_bc0a_4602299dff04["configurationPropertiesAnnotation()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| d143201a_aff2_8071_bc0a_4602299dff04
  b9480017_2bda_1c62_6643_2cd03bd939b9["configurationPropertiesSourceAnnotation()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| b9480017_2bda_1c62_6643_2cd03bd939b9
  d8d813b6_53a5_080c_894c_62c113efe1bd["nestedConfigurationPropertyAnnotation()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| d8d813b6_53a5_080c_894c_62c113efe1bd
  b0c339d3_0c20_054b_babf_f23130609556["deprecatedConfigurationPropertyAnnotation()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| b0c339d3_0c20_054b_babf_f23130609556
  02126344_fca9_dccd_2b01_9009a8ce6813["constructorBindingAnnotation()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| 02126344_fca9_dccd_2b01_9009a8ce6813
  7c22f98f_1c4d_7494_06ca_4a1ee2bab397["autowiredAnnotation()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| 7c22f98f_1c4d_7494_06ca_4a1ee2bab397
  0e91d925_2698_e7c3_4392_25f9220475f7["defaultValueAnnotation()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| 0e91d925_2698_e7c3_4392_25f9220475f7
  1582252c_2489_9f06_a1b4_276dea8b6731["endpointAnnotations()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| 1582252c_2489_9f06_a1b4_276dea8b6731
  a1758f6b_2301_70a9_db53_ae9786cba33b["readOperationAnnotation()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| a1758f6b_2301_70a9_db53_ae9786cba33b
  2f459548_ac4e_8ee5_8640_eadf3665ec64["nameAnnotation()"]
  30816150_0bbd_661d_2ac8_414f5f3633cf -->|calls| 2f459548_ac4e_8ee5_8640_eadf3665ec64
  style 30816150_0bbd_661d_2ac8_414f5f3633cf 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 181–192

	@Override
	public synchronized void init(ProcessingEnvironment env) {
		super.init(env);
		TypeUtils typeUtils = new TypeUtils(env);
		this.metadataStore = new MetadataStore(env, typeUtils);
		this.metadataCollectors = new MetadataCollectors(env, typeUtils);
		this.metadataCollector = this.metadataCollectors.getModuleMetadataCollector();
		this.metadataEnv = new MetadataGenerationEnvironment(env, configurationPropertiesAnnotation(),
				configurationPropertiesSourceAnnotation(), nestedConfigurationPropertyAnnotation(),
				deprecatedConfigurationPropertyAnnotation(), constructorBindingAnnotation(), autowiredAnnotation(),
				defaultValueAnnotation(), endpointAnnotations(), readOperationAnnotation(), nameAnnotation());
	}

Domain

Subdomains

Frequently Asked Questions

What does init() do?
init() is a function in the spring-boot codebase.
What does init() call?
init() calls 10 function(s): autowiredAnnotation, configurationPropertiesAnnotation, configurationPropertiesSourceAnnotation, constructorBindingAnnotation, defaultValueAnnotation, deprecatedConfigurationPropertyAnnotation, endpointAnnotations, nameAnnotation, and 2 more.

Analyze Your Own Codebase

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

Try Supermodel Free