]
Pete Muir commented on CDI-119:
-------------------------------
Yes, that is definitely impl detail ;-) It's completely up to an implementation how to
actually provide a service the spec requires.
Standard way to obtain a BeanManager regardless of environment
--------------------------------------------------------------
Key: CDI-119
URL:
https://issues.jboss.org/browse/CDI-119
Project: CDI Specification Issues
Issue Type: Feature Request
Affects Versions: 1.0
Reporter: Cloves Almeida
Priority: Minor
Fix For: 1.1 (Proposed)
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: