feat: add composable annotations support#920
Draft
bengbengbalabalabeng wants to merge 3 commits into
Draft
Conversation
Task-1: Collect all annotation (include composite) map when initializing the read/write head property.
Task-2: - Introduced `AnnotatedTypeDescriptor` and `AnnotatedFieldDescriptor` abstract models to carry metadata parsing logic at the class and field dimensions, respectively. - Encapsulated the `AnnotatedClassUtils`, rewriting part of the `ClassUtils` logic based on `AnnotatedElementDescriptor`. - Introduced the `enableMetaMarked` configuration flag to ensure read/write stability when handling legacy ClassUtils logic (such as `declaredExcelContentProperty` and `declaredFields`).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose of the pull request
Related: #918
Added composable annotations support. For more usage examples, please refer to #918.
What's changed?
@FesodMarkedand@FesodMarked.AliasFor, to expand theTarget-ElementType#ANNOTATION_TYPErestriction scope for other internal annotations except@ExcelIgnoreand@ExcelIgnoreUnannotated, making it convenient for users to define custom combined annotations.enableMetaMarkedto selectively enable composite annotation analysis. (Disabled by default)AnnotatedElementDescriptorto encapsulate the class/field-level element types and (composable) annotations inExcelHeadProperty.AnnotationMetadataReaderto refactor the internal annotation parsing and storage approach.AnnotatedClassUtilsutility class (similar toClassUtils) added to handle field parsing (read/write).Unresolved: #919
Checklist