<div dir="ltr">I could see this being problematic for implementations to deal with:<div><br></div><div>ContainerBoot boot = ...;</div><div>BeanManager beanManager1 = boot.initialize();</div><div>CDI.current();</div><div>BeanManager beanManager2 = boot.initialize();</div><div>CDI.current();</div><div><br></div><div>I see the second call to CDI.current() failing, since it should end up bound to a thread. If we instead return back a reference to CDI here, we know which instance we're dealing with and avoid the underlying threading problem.</div><div><br></div><div>John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 23, 2014 at 5:51 AM, Antoine Sabot-Durand <span dir="ltr"><<a href="mailto:antoine@sabot-durand.net" target="_blank">antoine@sabot-durand.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>What would be the interest of having CDI object to call getBeanManager() instead of having the bean manager directly ?</div><div><br></div><div>Antoine</div><br><div><blockquote type="cite"><div>Le 23 oct. 2014 à 03:13, John D. Ament <<a href="mailto:john.d.ament@gmail.com" target="_blank">john.d.ament@gmail.com</a>> a écrit :</div><div><div class="h5"><br><div><div dir="ltr">Hi Antoine,<div><br></div><div>For the SE feature, I think the return type on the initialize() methods should be CDI instead of BeanManager. What do you think?</div><div><br></div><div>John</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 22, 2014 at 6:55 AM, Antoine Sabot-Durand <span dir="ltr"><<a href="mailto:antoine@sabot-durand.net" target="_blank">antoine@sabot-durand.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Hi guys, </div><div><br></div><div><br></div><div>New post on the blog : Check what was discussed in our last week F2F meeting.</div><div><br></div><div><a href="http://www.cdi-spec.org/news/2014/10/20/CDI-2_0-first-face-to-face-meeting-feedback/" target="_blank">http://www.cdi-spec.org/news/2014/10/20/CDI-2_0-first-face-to-face-meeting-feedback/</a></div><div><br></div><div>Regards,</div><div><br></div><div>Antoine</div></div><br>_______________________________________________<br>
cdi-dev mailing list<br>
<a href="mailto:cdi-dev@lists.jboss.org" target="_blank">cdi-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
<br>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br></blockquote></div><br></div>
</div></div></div></blockquote></div><br></div></blockquote></div><br></div>