-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Clarify the behavior of InstanceHandle.close()
#33665
Comments
@manovotn Do you happen to know if this was discussed in a spec issue? |
No, I don't think this was proposed on the spec level at all. |
@Ladicek Clarified where? In the spec or in Quarkus docs? |
My personal opinion is that we shouldn't have added |
I propose to add a note to the list of Non-standard Features and mark this issue as resolved. |
I guess that makes sense. |
Description
The CDI specification currently says that
Instance.Handle.close()
unconditionally callsdestroy()
. This behavior is inherited from Weld.ArC's
InstanceHandle.close()
only callsdestroy()
if the bean pointed to by the handle is@Dependent
, leaving lifecycle management of other beans to the respective context.In #33523, we made
InstanceHandle.close()
behavior dependent on the container running mode: by default, it follows the previous ArC behavior, but in the strict mode, it follows the specified behavior. This is confusing and needs to be clarified.Implementation ideas
One option is to propose a change to the specification.
The text was updated successfully, but these errors were encountered: