Having some challenge with I18NProviders and @VaadinServiceScoped #147
Labels
bug
Something isn't working
documentation
Improvements or additions to documentation
Impact: Low
Severity: Major
I was challenged with instantiating a custom I18NProviders. I used the docs found at the vaadin page and tried to use CDI to instantiate a bean. That bean however got removed by quarkus during bean removal:
https://quarkus.io/guides/cdi-reference#remove_unused_beans
so no I18NProvider was found.
I needed to use the bean at an injection point for quarkus to stop removing the bean or use @unremovable to mark it. (Both seems missing in the docs).
In addition i had to add the @default qualifier for the QuarkusInstatiator to pick up the bean correctly (which is also not mentioned in the docs).
I got some help from the quarkus project here:
quarkusio/quarkus#38726
Maybe the docs can be updated or that beans should be made @unremovable and @default by default?
The text was updated successfully, but these errors were encountered: