[cdi-dev] [JBoss JIRA] (CDI-77) Clarify what happens when the user creates a unbound recursive injection with Dependent scoped beans

Antoine Sabot-Durand (JIRA) jira-events at lists.jboss.org
Thu Nov 14 04:46:07 EST 2013


    [ https://issues.jboss.org/browse/CDI-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923456#comment-12923456 ] 

Antoine Sabot-Durand commented on CDI-77:
-----------------------------------------

[~arnelim] I agree with [~rmannibucau]. I think we should avoid usage of proxies on dependent bean (at least limit them to he strict necessary). IMO the spec shouldn't be driven by what's possible but by what's makes sense or is a good practice. Circular injection doesn't feel a good way to design application to me. Now perhaps you can give us an example in which it would be useful ?
                
> Clarify what happens when the user creates a unbound recursive injection with Dependent scoped beans
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CDI-77
>                 URL: https://issues.jboss.org/browse/CDI-77
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>          Components: Resolution
>    Affects Versions: 1.0
>            Reporter: Pete Muir
>            Assignee: Pete Muir
>             Fix For: TBD
>
>
> for example
> class Foo {
> @Inject Bar bar;
> }
> class bar {
> @Inject Foo foo;
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list