[cdi-dev] [JBoss JIRA] (CDI-77) Clarify what happens when the user creates a unbound recursive injection with Dependent scoped beans
Arne Limburg (JIRA)
jira-events at lists.jboss.org
Thu Nov 14 07:21:06 EST 2013
[ https://issues.jboss.org/browse/CDI-77?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923561#comment-12923561 ]
Arne Limburg commented on CDI-77:
---------------------------------
Hmm, but why (but of a technical point of view) should the spec differentiate between normal scoped beans and dependent beans? Either we feel that circular injection is not a good way to design applications and want to forbit it in either situation or we allow it and maybe document behavior where it simply does not work.
By the way, how does the spec treat situations where a dependent bean has an interceptor-binding or decorator and is not proxiable?
> 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