You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/ConfigurationPropertyAnnotationProcessor.java
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,23 @@
44
44
/**
45
45
* The {@link Processor} for the {@link ConfigurationProperty} annotation
46
46
*
47
+
* <p>This class processes the {@link ConfigurationProperty} annotations during the compilation phase,
48
+
* collects metadata about annotated elements, and generates a JSON metadata file that contains
49
+
* configuration property information.
50
+
*
51
+
* <ul>
52
+
* <li>{@link #init(ProcessingEnvironment)} initializes required utilities such as the Messager and ResourceProcessor.</li>
53
+
* <li>{@link #process(Set, RoundEnvironment)} handles each processing round:
54
+
* <ul>
55
+
* <li>During normal rounds, it resolves metadata from annotated elements.</li>
56
+
* <li>On the final round, it writes collected metadata into a resource file.</li>
57
+
* </ul>
58
+
* </li>
59
+
* <li>{@link #resolveMetadata(RoundEnvironment)} traverses all root elements to extract configuration property metadata.</li>
60
+
* <li>{@link #writeMetadata()} writes the generated metadata into a JSON file under
61
+
* {@value #CONFIGURATION_PROPERTY_METADATA_RESOURCE_NAME} using a writer.</li>
Copy file name to clipboardExpand all lines: microsphere-annotation-processor/src/main/java/io/microsphere/annotation/processor/util/AnnotationUtils.java
0 commit comments