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

processElement() — spring-boot Function Reference

Architecture documentation for the processElement() function in AutoConfigureAnnotationProcessor.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  3ba2493f_400f_e86c_b87c_8d9b93ffabc2["processElement()"]
  066bdff6_c45c_b380_3277_2bf1dddacc25["process()"]
  066bdff6_c45c_b380_3277_2bf1dddacc25 -->|calls| 3ba2493f_400f_e86c_b87c_8d9b93ffabc2
  1814d2a0_1185_8a39_8d6d_a26131e7ddee["getAnnotation()"]
  3ba2493f_400f_e86c_b87c_8d9b93ffabc2 -->|calls| 1814d2a0_1185_8a39_8d6d_a26131e7ddee
  1fdb4314_44c3_559d_a8d6_bdad3a18ff77["applyToProperties()"]
  3ba2493f_400f_e86c_b87c_8d9b93ffabc2 -->|calls| 1fdb4314_44c3_559d_a8d6_bdad3a18ff77
  2d669371_a658_31c2_7f78_8cb79e788354["getValues()"]
  3ba2493f_400f_e86c_b87c_8d9b93ffabc2 -->|calls| 2d669371_a658_31c2_7f78_8cb79e788354
  style 3ba2493f_400f_e86c_b87c_8d9b93ffabc2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure-processor/src/main/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessor.java lines 140–153

	private void processElement(Element element, PropertyGenerator generator, String annotationName) {
		try {
			String qualifiedName = Elements.getQualifiedName(element);
			AnnotationMirror annotation = getAnnotation(element, annotationName);
			if (qualifiedName != null && annotation != null) {
				List<Object> values = getValues(generator, annotationName, annotation);
				generator.applyToProperties(this.properties, qualifiedName, values);
				this.properties.put(qualifiedName, "");
			}
		}
		catch (Exception ex) {
			throw new IllegalStateException("Error processing configuration meta-data on " + element, ex);
		}
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does processElement() do?
processElement() is a function in the spring-boot codebase.
What does processElement() call?
processElement() calls 3 function(s): applyToProperties, getAnnotation, getValues.
What calls processElement()?
processElement() 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