-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Callback interfaces such as LoadTimeWeaverAware should allow for local overriding [SPR-13892] #18466
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
Juergen Hoeller commented This is so far by design: You can either populate such a setter manually or set up a context-wide reference, not both at the same time. If there is a context-wide In your case, you'd have to set up your "loadTimeWeaver" bean as your custom class manually, instead of using |
Andrei Ivanov commented Hm, I think it's a bit unfortunate. If I have a lot of beans using the default weaver and just one that needs a special weaver it means I have to manually set them all instead of just that one bean (in this case, a specific weaver for JPA) :( |
Andrei Ivanov commented Any chance to turn this into a more generic improvement request regarding local overriding of injected properties by post-processors? :) |
Bulk closing outdated, unresolved issues. Please, reopen if still relevant. |
Uh oh!
There was an error while loading. Please reload this page.
Andrei Ivanov opened SPR-13892 and commented
Trying to inject a custom
LoadTimeWeaver
into aLoadTimeWeaverAware
fails, as it initially gets injected but then theLoadTimeWeaverAwareProcessor
comes along and injects the defaultloadTimeWeaver
.Affects: 4.2.4
Issue Links:
0 votes, 5 watchers
The text was updated successfully, but these errors were encountered: