Skip to content

Conversation

mp911de
Copy link
Member

@mp911de mp911de commented Sep 16, 2025

Make predicates on TypeCollector usable, introduce strategy interface so that AOT participants can contribute their own predicates for inclusion/exclusion of types that should be considered reachable.

@mp911de mp911de added type: enhancement A general enhancement theme: aot An issue related to Ahead-Of-Time processing labels Sep 16, 2025
@mp911de mp911de changed the title Refine TypeCollector Refine TypeCollector usage and predicates Sep 16, 2025
* @author Mark Paluch
* @since 4.0
*/
public interface TypeCollectorPredicateProvider {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we renamed this to TypeCollectorPredicates?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a bit confusing, naming it predicates, TypeCollectorFilterProvider maybe?

mp911de and others added 4 commits September 18, 2025 09:43
We now provide a SPI for libraries that want to provide predicates for AOT processing so that AOT processing not only considers its own rules but also e.g. exclusions from other participants on the class path.
Rename TypeCollectorPredicateProvider -> TypeCollectorFilters
Update javadoc and deprecate jpa specific predicate.
@mp911de mp911de added this to the 4.0 RC1 (2025.1.0) milestone Sep 18, 2025
christophstrobl pushed a commit that referenced this pull request Sep 18, 2025
christophstrobl pushed a commit that referenced this pull request Sep 18, 2025
We now provide a SPI for libraries that want to provide predicates for AOT processing so that AOT processing not only considers its own rules but also e.g. exclusions from other participants on the class path.

See: #3362
Original Pull Request: #3363
christophstrobl added a commit that referenced this pull request Sep 18, 2025
Rename TypeCollectorPredicateProvider -> TypeCollectorFilters
Update javadoc and deprecate jpa specific predicate.

Original Pull Request: #3363
@christophstrobl christophstrobl deleted the issue/3362 branch September 18, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: aot An issue related to Ahead-Of-Time processing type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refine filters for TypeCollector and ManagedTypesBeanRegistrationAotProcessor contributions
2 participants