You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As #32214 has shown, registering a singleton means that it's completely ignored by AOT since AOT can't know how the bean instance has been instantiated. It's very similar to having a custom instance supplier hidden behind a lambda.
We should make it more clear in the AOT chapter that this won't work and why.
The text was updated successfully, but these errors were encountered:
snicoll
changed the title
Add section on AOT best practices about registering singletons or a Bean
Add section on AOT best practices about registering singletons
Feb 11, 2024
As #32214 has shown, registering a singleton means that it's completely ignored by AOT since AOT can't know how the bean instance has been instantiated. It's very similar to having a custom instance supplier hidden behind a lambda.
We should make it more clear in the AOT chapter that this won't work and why.
The text was updated successfully, but these errors were encountered: