[cdi-dev] [JBoss JIRA] (CDI-214) Remove the need to store the BeanManager in the Servlet attributes

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Aug 21 17:11:15 EDT 2012


     [ https://issues.jboss.org/browse/CDI-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir updated CDI-214:
--------------------------

    Fix Version/s: 1.1.EDR2
                       (was: 1.1 (Proposed))
         Priority: Minor  (was: Major)
      Component/s: Portable Extensions
                       (was: Concepts)

    
> Remove the need to store the BeanManager in the Servlet attributes 
> -------------------------------------------------------------------
>
>                 Key: CDI-214
>                 URL: https://issues.jboss.org/browse/CDI-214
>             Project: CDI Specification Issues
>          Issue Type: Bug
>          Components: Portable Extensions
>    Affects Versions: 1.1.EDR1
>            Reporter: Mark Struberg
>            Assignee: Pete Muir
>            Priority: Minor
>             Fix For: 1.1.EDR2
>
>
> the CDI-1.1-EDR1 added a new feature (CDI-14):
> > spi.xml-      <para>Web components may obtain an instance of <literal>BeanManager</literal>
> > spi.xml:      by calling <literal>ServletContext.getAttribute("javax.enterprise.inject.spi.BeanManager")</literal>.
> Imo we should remove this again and instead propose the usage of the new CDI.current() for such situations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list