-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
ArC removes indirect referenced beans #3311
Comments
Although not a real solution, you can use Furthermore you could also annotate your exporters with |
Unfortunately we are not able to use |
I see |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you! |
@mkouba should we improve the removal algorithm to deal with this case? |
Yep, it's a bug. I'll send a PR with a fix shortly. |
Great, looking forward to the fix. |
@dkellenb Are you sure the injection point is |
Quarkus in version 19.1 removes indirect referenced beans.
Lets have following scenario. You define an interface for your strategies and an services that depending on any argument, returns the appropriate strategy. These strategies are defined as beans. As these beans are not referenced directly with injections, but only through the interface, the are removed by ArC. The only way to fix it, is by setting
quarkus.arc.remove-unused-beans=false
If there is an
@Inject javax.enterprise.inject.Instance<T>
Quarkus (ArC) should keep all classes implementingT
.The text was updated successfully, but these errors were encountered: