chore(backend): Add Jandex as a replacement for reflection scanning (#32868) #32869
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.
Proposed Changes
com.dotcms.util.JandexClassMetadataScanner) providing high-performance class metadata scanning capabilitiesdocs/backend/JANDEX_METADATA_SCANNING.md) with usage guidelines, performance benchmarks, and migration strategiesThis change is required for #32656 but is provided as a generic component to help migration and improvement of existing and future reflection requirements. We were already generating the index file for use with CDI and ByteBuddy, this makes it available to our own code.
Key Features
🚀 Performance Improvements:
�� Core Functionality:
🛡️ Robust Implementation:
Technical Details
Maven Configuration:
io.smallrye:jandexdependency (compile scope)jandex-maven-pluginfor automatic index generationMETA-INF/jandex.idxduring buildAPI Examples:
Migration Strategy
This implementation supports progressive rollout:
Areas for future migration:
Checklist
Additional Info
Closes #32868
This implementation provides the foundation for migrating slow reflection-based class scanning throughout the dotCMS codebase to high-performance Jandex-based scanning, with immediate benefits for REST endpoint compliance testing and future expansion to other areas requiring class metadata analysis.
Performance Impact:
This PR fixes: #32868