-
Notifications
You must be signed in to change notification settings - Fork 78
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
Do we really need #veto() on PBA? #668
Comments
If we don't think there are many usecases, we could maybe deprecate the method for removal |
I believe this also applies to |
It also messes up with the events ordering as we have discussed. Makes the logic more complex because we have to re-evaluate in the context of specialized beans. Also a PIP might not be valid so a user might have reacted to a PIP event and now it's not valid anymore, so we have to trigger a new PIP event. |
Where is this rooted in the spec? EDIT: During the CDI meeting (Apr 25), we clarified that re-firing the PIP event was a typo and it was meant to be PBA. I do agree that |
Removing 2nd example: Quarkus provides a mechanism for "default beans", i.e. default implementations that are only used if the application does not define beans of certain types(+qualifier). If one wants to implement this feature in a portable extension (instead of implementing your own CDI container like ArC), the default bean has be vetoed whenever a non-default bean is detected. 3rd, similar example: Quarkus also has a |
We have discussed many times the veto() impact when there is specialization involved. We could also ask ourselves if it brings much value to have veto() in PBA.
The text was updated successfully, but these errors were encountered: