<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">Le 16 mars 2015 à 11:02, Jozef Hartinger <<a href="mailto:jharting@redhat.com" class="">jharting@redhat.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class="">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
Btw was there any further discussion about the bean discovery mode
in SE?<br class="">
<br class=""></div></div></blockquote><div><br class=""></div><div>For the time being we decided to have the same discovery mode in SE (default to Annotated). If someone has a good reason to change the default mode in SE and/or add a new discovery mode, I’d be glad to hear about it.</div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div text="#000000" bgcolor="#FFFFFF" class="">
<div class="moz-cite-prefix">On 03/16/2015 10:45 AM, Jozef Hartinger
wrote:<br class="">
</div>
<blockquote cite="mid:5506A627.4050205@redhat.com" type="cite" class="">
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
The CDIProvider serves as a kind of SPI for CDI's static methods
to be able to call into the implementation. I don't think reusing
it also as a user-facing code is a good idea. What people
suggesting to reuse CDIProvider had in mind, I think, was to reuse
it as the SPI for talking to the CDI implementation instead. That
way, the initialize() static method of
CDIContainer/StartedCDI/whatever we call it can use CDIProvider
internally to actually start the container.<br class="">
<br class="">
In addition, the current proposal does not make it possible to
implement parallel container instances.<br class="">
<br class="">
Jozef<br class="">
<br class="">
<div class="moz-cite-prefix">On 03/15/2015 05:03 PM, John D. Ament
wrote:<br class="">
</div>
<blockquote cite="mid:CAOqetn-hrg+C+i2=aUahp_-0mqednctjq-AWoyzCVtyduqbFsA@mail.gmail.com" type="cite" class="">
<div dir="ltr" class="">HI all,
<div class=""><br class="">
</div>
<div class="">Apologies for being a week late on getting this doc
together. I had some personal issues pop up after my leg
came out of its cast that consumed most of my week last
week.</div>
<div class=""><br class="">
</div>
<div class="">Anywho, I've updated the doc with a summary of what was
discussed with CDI SE bootstrap support. You can find that
here: <a moz-do-not-send="true" href="https://docs.google.com/document/d/1LgsGT-AAlrF72Z5pW4xNQiVjUHGUME46ZmB-wwF35Yw/edit?usp=sharing" class="">https://docs.google.com/document/d/1LgsGT-AAlrF72Z5pW4xNQiVjUHGUME46ZmB-wwF35Yw/edit?usp=sharing</a></div>
<div class=""><br class="">
</div>
<div class="">There are two minor changes that I made from where we
last discussed, as when I was putting together code I found
some gaps and figured it best to fix them here than later.</div>
<div class=""><br class="">
</div>
<div class="">1. CDIProvider does not implement AutoCloseable. Since
CDI class maintains a reference to the provider,
implementing AutoCloseable was not adding anything.</div>
<div class=""><br class="">
</div>
<div class="">2. I added a method boolean isInitialized() so that the
caller can know if they need to start the container (or if
it's already running).</div>
<div class=""><br class="">
</div>
<div class="">Locally, I've also modified the CDI.current() method to
use getCDIProvider() instead of internally finding the
provider since we now have a getter.</div>
<div class=""><br class="">
</div>
<div class="">One thing I'd like to get feedback on is if calling
initialize/shutdown in a container should throw
IllegalStateException, or probably better to throw
UnsupportedOperationException when called in EE containers.</div>
<div class=""><br class="">
</div>
<div class="">Let me know your thoughts.</div>
<div class=""><br class="">
</div>
<div class="">John</div>
<div class=""><br class="">
</div>
</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre wrap="" class="">_______________________________________________
cdi-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.apache.org/licenses/LICENSE-2.0.html">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.</pre>
</blockquote>
<br class="">
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre wrap="" class="">_______________________________________________
cdi-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a class="moz-txt-link-freetext" href="http://www.apache.org/licenses/LICENSE-2.0.html">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.</pre>
</blockquote>
<br class="">
</div>
_______________________________________________<br class="">cdi-dev mailing list<br class=""><a href="mailto:cdi-dev@lists.jboss.org" class="">cdi-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/cdi-dev<br class=""><br class="">Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.</div></blockquote></div><br class=""></body></html>