-
Notifications
You must be signed in to change notification settings - Fork 682
Notify *Aware
interfaces using custom type filters through Enable…Repositories#includeFilters
#2481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for bringing this up. Spring Data reuses Support for Aligning with Spring Framework would help with consistency here. |
I moved this ticket into Spring Data Commons as the repository discovery is part of our common infrastructure. |
I filed spring-projects/spring-framework#27553 asking for reuse of Framework components for filter annotation parsing. |
Spring Framework provides now |
Enable…Repositories#includeFilters
does not enable *Aware
interfaces for custom type filters
Enable…Repositories#includeFilters
does not enable *Aware
interfaces for custom type filters*Aware
interfaces using custom type filters through Enable…Repositories#includeFilters
The javadoc for
ComponentScan.Filter#classes
specifies that custom instances ofTypeFilter
can implement any of 4*Aware
interfaces, whose methods should be called before matching.When specifying a filter in
EnableJpaRepositories#includeFilters
, the methods of those interfaces are not called. Construtor autowiring cannot be used either, because filter instances are created usingBeanUtils#instantiateClass(Class<?>)
.The text was updated successfully, but these errors were encountered: