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

Martin Kouba (JIRA) issues at jboss.org
Fri Feb 19 03:10:00 EST 2016

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

Martin Kouba commented on CDI-507:

Well, {{javax.inject.Singleton}} will always be a pseudo-scope and will never behave in the same way as {{ApplicationScoped}} normal scope. See also [5.4. The singleton pseudo-scope|http://docs.jboss.org/weld/reference/latest/en-US/html/scopescontexts.html#_the_singleton_pseudo_scope] in the Weld reference guide.

> 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

More information about the cdi-dev mailing list