<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>All,</p>
<p><br>
</p>
<p>So Martin below is saying its valid, but then in the ticket is saying its not valid. &nbsp;I'll wait for others to voice opinions on this one.</p>
<p><br>
</p>
<p>John</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(33,33,33); font-size:15px; margin:0px"><br>
</div>
<p></p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Martin Kouba &lt;mkouba@redhat.com&gt;<br>
<b>Sent:</b> Monday, April 3, 2017 2:48 AM<br>
<b>To:</b> John Ament; cdi-dev<br>
<b>Subject:</b> Re: [cdi-dev] CDI.current() in AfterDeploymentValidation</font>
<div>&nbsp;</div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi John,<br>
<br>
I think it's valid to call CDI.current() from within an extension. WRT <br>
Weld - what version and environment do you use? There was an issue in <br>
Weld SE which should be fixed in 2.4.2 (see also WELD-2256 [1]).<br>
<br>
Martin<br>
<br>
[1]<br>
<a href="https://issues.jboss.org/browse/WELD-2256" id="LPlnk984496">https://issues.jboss.org/browse/WELD-2256</a><br>
<br>
Dne 3.4.2017 v 04:36 John Ament napsal(a):<br>
&gt; So I know during the reception of AfterDeploymentValidation, the<br>
&gt; container isn't fully bootstrapped.&nbsp; However, its valid to look up<br>
&gt; beans.&nbsp; I would therefore expect that CDI.current().select()... to work<br>
&gt; fine.&nbsp; However, at least in Weld it doesn't.&nbsp; This is because<br>
&gt; CDI.current() cannot figure out what container to use (it's not fully<br>
&gt; bootstrapped yet).&nbsp; So my question - is this a Weld issue, or a spec<br>
&gt; clarification?<br>
&gt;<br>
&gt;<br>
&gt; John<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; NOTICE: This e-mail message and any attachments may contain<br>
&gt; confidential, proprietary, and/or privileged information which should be<br>
&gt; treated accordingly. If you are not the intended recipient, please<br>
&gt; notify the sender immediately by return e-mail, delete this message, and<br>
&gt; destroy all physical and electronic copies. Thank you.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; cdi-dev@lists.jboss.org<br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;<br>
&gt; 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">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>
&gt;<br>
<br>
-- <br>
Martin Kouba<br>
Senior Software Engineer<br>
Red Hat, Czech Republic<br>
</div>
</span></font></div>
</div>
<hr>
NOTICE: This e-mail message and any attachments may contain confidential, proprietary, and/or privileged information which should be treated accordingly. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this
 message, and destroy all physical and electronic copies. Thank you.
</body>
</html>