<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. 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 <mkouba@redhat.com><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> </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>
> So I know during the reception of AfterDeploymentValidation, the<br>
> container isn't fully bootstrapped. However, its valid to look up<br>
> beans. I would therefore expect that CDI.current().select()... to work<br>
> fine. However, at least in Weld it doesn't. This is because<br>
> CDI.current() cannot figure out what container to use (it's not fully<br>
> bootstrapped yet). So my question - is this a Weld issue, or a spec<br>
> clarification?<br>
><br>
><br>
> John<br>
><br>
> ------------------------------------------------------------------------<br>
> NOTICE: This e-mail message and any attachments may contain<br>
> confidential, proprietary, and/or privileged information which should be<br>
> treated accordingly. If you are not the intended recipient, please<br>
> notify the sender immediately by return e-mail, delete this message, and<br>
> destroy all physical and electronic copies. Thank you.<br>
><br>
><br>
> _______________________________________________<br>
> cdi-dev mailing list<br>
> cdi-dev@lists.jboss.org<br>
> <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev">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">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>
><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>