[
https://issues.jboss.org/browse/CDI-52?page=com.atlassian.jira.plugin.sys...
]
Jozef Hartinger commented on CDI-52:
------------------------------------
Another conflict I run into:
In order to preserve the InjectionPoint reference till the execution of a disposer method,
it is necessary to keep the reference in the CreationalContext.
However, the spec says:
{quote}
Producer.dispose() calls the disposer method, if any, on a contextual instance of the bean
that declares the disposer method, as
defined in Section 5.5.4, “Invocation of producer or disposer methods”, or performs any
additional required cleanup, if
any, to destroy state associated with a resource.
{quote}
which means that the invocation of the disposer method is managed by the dispose() method
of the Producer interface. Since Producer is not aware of the CreationalContext associated
with the instance being disposed, it itself cannot restore the InjectionPoint properly.
Make it clearer that an InjectionPoint injected into a disposer
method refers to the producer method bean and not to the declaring bean
---------------------------------------------------------------------------------------------------------------------------------------
Key: CDI-52
URL:
https://issues.jboss.org/browse/CDI-52
Project: CDI Specification Issues
Issue Type: Clarification
Components: Beans
Affects Versions: 1.0
Reporter: Pete Muir
Assignee: Pete Muir
Fix For: 1.1.EDR2
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira