[
https://issues.jboss.org/browse/CDI-457?page=com.atlassian.jira.plugin.sy...
]
Mark Struberg commented on CDI-457:
-----------------------------------
Not sure if this in line with the spec.
See 5.4 Client Proxies:
{quote}
Client proxies are never required for a bean whose scope is a pseudo-scope such as
@Dependent.
{quote}
If we would introduce a special way to destroy them, then we MUST keep track of them. But
this is exactly what we should not need to do for dependent beans...
Add a disposable interface
--------------------------
Key: CDI-457
URL:
https://issues.jboss.org/browse/CDI-457
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Contexts
Reporter: John Ament
Assignee: John Ament
Currently for Dependent scoped beans, there's no way for the container to be aware
when it's no longer needed.
I suggest that we somehow wrap dependent beans in a Disposable wrapper to be notified
when it's not needed any longer.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)