[cdi-dev] [JBoss JIRA] (CDI-507) CDI support for Singleton Pseudo Scope

Stephan Knitelius (JIRA) issues at jboss.org
Wed Feb 17 15:16:00 EST 2016


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

Stephan Knitelius commented on CDI-507:
---------------------------------------

Maybe it would help if it was explecitly mentioned. 

Since it is only treated implicitly via {code}@Scoped{code} scopes being treated as pseudo scoped. Which can lead to some odd behavior when using javax.inject.Singleton instead of application scoped.  

> CDI support for Singleton Pseudo Scope
> --------------------------------------
>
>                 Key: CDI-507
>                 URL: https://issues.jboss.org/browse/CDI-507
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>         Environment: --NA-- (documentation)
>            Reporter: Abhishek Gupta
>
> Section 2.4.1 states 5 built-in scope types including the pseudo scope @Dependent.
> As per the Weld documentation, CDI also supports an additional pseudo scope - @javax.inject.Singleton (see here --> http://red.ht/1D3qu97)
> Just wanted to confirm whether the CDI Specification document is missing this information or the content in the Weld documentation is incorrect?



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list