[weld-issues] [JBoss JIRA] Commented: (WELD-466) Injected dependent Instance<?> aren't registered as dependents
Nicklas Karlsson (JIRA)
jira-events at lists.jboss.org
Wed Mar 24 17:33:37 EDT 2010
[ https://jira.jboss.org/jira/browse/WELD-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12521891#action_12521891 ]
Nicklas Karlsson commented on WELD-466:
---------------------------------------
Need comments on which CC to store in the AbstractFacade. The InstanceBean created one? The declaring beans? As I don't appear to get the generated Instance products to be picked up by a CC that is destroyed with the declaring bean.
Also, adding a CC to sendEvent quickly leads to changes in the API/SPI
> Injected dependent Instance<?> aren't registered as dependents
> --------------------------------------------------------------
>
> Key: WELD-466
> URL: https://jira.jboss.org/jira/browse/WELD-466
> Project: Weld
> Issue Type: Bug
> Components: Producers (Methods, Fields and Disposers)
> Affects Versions: 1.0.1.Final
> Reporter: Nicklas Karlsson
> Assignee: Nicklas Karlsson
> Fix For: 1.0.2.CR1
>
>
> If we have
> @RequestScoped
> public class Foo {
> @Inject Instance<Bar> bar;
> }
> and bar has a dependent scoped producer/disposer pair, the disposer method is never called when Foo is destroyed since the Instance is not considered a dependent to Foo
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list