[cdi-dev] Summarize finding a BeanManager (for Java SE, integration with older Java EE and unit testing)

Rick Hightower richardhightower at gmail.com
Mon Apr 25 19:24:28 EDT 2011


I am new to the group. Where is the source code for CDI 1.1?
I can branch it, add this and solicit feedback.
I think working code is much easier to talk about than bullet points.



On Mon, Apr 25, 2011 at 4:07 PM, Rick Hightower
<richardhightower at gmail.com>wrote:

> We need a general purpose way of finding a BeanManager.
> +1 for me.
>
> This way should include JNDI lookup to a fallback BeanManagerLocator that
> uses a ServiceLoader
> +1 for me.
>
> I think the behavior should look like this:
>
>
>    - Lookup BeanManager in JNDI
>    - If not found, try to load BeanManagerLocator from system property.
>    - If not found, try to load BeanManagerLocator from ServiceLoader.
>    - If more than one BeanManagerLocator found, sort by priority or die if
>    there is more than one. (not sure about the sort, I think it should die, but
>    can be convinced otherwise).
>    - Once the BeanManagerLocator is found, use it to return a BeanManager
>
>
> In addition,
>
> I think we need a simplified interface for BeanManager.
>
>
> https://github.com/CDISource/cdisource/blob/master/beancontainer/api/src/main/java/org/cdisource/beancontainer/BeanContainer.java
>
> This could just be a utility class, but it should be included with CDI 1.1.
> I think the  BeanManager interface is too low level.
>
>
>
> --
> *Rick Hightower*
> (415) 968-9037
> Profile <http://www.google.com/profiles/RichardHightower>
>
>


-- 
*Rick Hightower*
(415) 968-9037
Profile <http://www.google.com/profiles/RichardHightower>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20110425/056889c9/attachment.html 


More information about the cdi-dev mailing list