Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-214

Remove the need to store the BeanManager in the Servlet attributes

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              pmuiratbleepbleep Pete Muir
              struberg Mark Struberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: