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

Standard way to obtain a BeanManager regardless of environment

    XMLWordPrintable

Details

    • Feature Request
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate Issue
    • 1.0
    • None
    • Java SE Integration
    • None

    Description

      As an alternative to #CDI-117:

      There should be a standard way to obtain a BeanManager instance regardless of environment. I propose a BeanManagerFactory that would implement the following resolution:

      1) if in a JEE environment, use the JNDI resolution already proposed on spec
      2) if in a non-JEE servlet container, use the servlet context attribute as proposed in #CDI-117
      3) else, fallback on a "singleton" BeanManager

      For extensability, one could override the resolution mechanism by providing his own BeanManagerResolver.

      Attachments

        Issue Links

          Activity

            People

              pmuiratbleepbleep Pete Muir
              cjalmeida_jira Cloves Almeida (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: