-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Infer JDK dynamic proxies for Spring beans #28980
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
Since it is now properly inferred. See spring-projectsgh-28980
Not required anymore since JDK dynamic proxies are inferred. Closes spring-projectsgh-28980
@snicoll @jhoeller A draft implementation is available on gh-28980. While
Not sure yet why this one is not detected. |
As discussed with Juergen, this is due to |
Further refinements will be required for MethodValidationPostProcessor since @lazy used by Spring Boot is not supported yet for that use case. See spring-projectsgh-28980
I've addressed the specific |
@sdeleuze for Maybe we could cover the most common scenarios in our AOT configuration class processing, outside of the core container. As we are transforming each bean declaration into a programmatic bean definition, we could introspect the signatures of the factory methods, constructors and also setter methods that we're generating calls for - and automatically register a JDK proxy hint (or define a corresponding CGLIB subclass) for an |
I've introduced a
For CGLIB proxies, it should be sufficient to have triggered |
|
After a discussion with @snicoll and @jhoeller insights, we found that it is possible to infer automatically JDK dynamic proxies required by Spring beans during the AOT processing.
The text was updated successfully, but these errors were encountered: