<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>What you're referring to is a nuance that most users don't follow. &nbsp;A PAT is fired for essentially every class found. &nbsp;If this works differently (e.g. for bean-discovery-mode=none) then it may be worth calling this out, but as of now it should be implicit
 that PAT works differently.</p>
<p><br>
</p>
<p>John</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Antoine Sabot-Durand &lt;antoine@sabot-durand.net&gt;<br>
<b>Sent:</b> Monday, November 21, 2016 5:07 AM<br>
<b>To:</b> Martin Kouba; John Ament; CDI Java EE Specification<br>
<b>Subject:</b> Re: [cdi-dev] Need native speaker for CDI-420 (trim) reword</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">&#43;1 for Martin. I didn't read with enough attention. All Types should be discovered like in All bean-discovery mode , but only those with bean defining annotation or scope should be eligible to become beans.<br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Mon, Nov 21, 2016 at 9:15 AM Martin Kouba &lt;<a href="mailto:mkouba@redhat.com">mkouba@redhat.com</a>&gt; wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Hi John,<br class="gmail_msg">
<br class="gmail_msg">
sounds good but is not entirely correct because those type ARE actually<br class="gmail_msg">
discovered (ProcessAnnotatedType is fired etc.) and then removed (if<br class="gmail_msg">
necessary) from the set of discovered types before the &quot;Bean discovery&quot;<br class="gmail_msg">
phase.<br class="gmail_msg">
<br class="gmail_msg">
Martin<br class="gmail_msg">
<br class="gmail_msg">
Dne 18.11.2016 v 16:50 John Ament napsal(a):<br class="gmail_msg">
&gt; Here's my take..<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; &quot;If an explicit bean archive contains the `&lt;trim/&gt;` element in its<br class="gmail_msg">
&gt; `beans.xml` file, then for a type to be discovered it must have either a<br class="gmail_msg">
&gt; scope annotation (normal or pseudo) or a bean defining annotation (as<br class="gmail_msg">
&gt; defined in &lt;&lt;bean_defining_annotations&gt;&gt;)&quot;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; John<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; ------------------------------------------------------------------------<br class="gmail_msg">
&gt; *From:* <a href="mailto:cdi-dev-bounces@lists.jboss.org" class="gmail_msg" target="_blank">
cdi-dev-bounces@lists.jboss.org</a><br class="gmail_msg">
&gt; &lt;<a href="mailto:cdi-dev-bounces@lists.jboss.org" class="gmail_msg" target="_blank">cdi-dev-bounces@lists.jboss.org</a>&gt; on behalf of Antoine Sabot-Durand<br class="gmail_msg">
&gt; &lt;<a href="mailto:antoine@sabot-durand.net" class="gmail_msg" target="_blank">antoine@sabot-durand.net</a>&gt;<br class="gmail_msg">
&gt; *Sent:* Friday, November 18, 2016 9:30 AM<br class="gmail_msg">
&gt; *To:* CDI Java EE Specification<br class="gmail_msg">
&gt; *Subject:* [cdi-dev] Need native speaker for CDI-420 (trim) reword<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; Hi all,<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; With Martin, we reword the &lt;trim/&gt; section like:<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; &quot;If an explicit bean archive contains the `&lt;trim/&gt;` element in its<br class="gmail_msg">
&gt; `beans.xml` file, types that don't have either a bean defining<br class="gmail_msg">
&gt; annotation (as defined in &lt;&lt;bean_defining_annotations&gt;&gt;) or any scope<br class="gmail_msg">
&gt; annotation, are removed from the set of discovered types.&quot;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; Grammar feedback from native speaker is most welcome.<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; Antoine<br class="gmail_msg">
&gt; ------------------------------------------------------------------------<br class="gmail_msg">
&gt; NOTICE: This e-mail message and any attachments may contain<br class="gmail_msg">
&gt; confidential, proprietary, and/or privileged information which should be<br class="gmail_msg">
&gt; treated accordingly. If you are not the intended recipient, please<br class="gmail_msg">
&gt; notify the sender immediately by return e-mail, delete this message, and<br class="gmail_msg">
&gt; destroy all physical and electronic copies. Thank you.<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt;<br class="gmail_msg">
&gt; _______________________________________________<br class="gmail_msg">
&gt; cdi-dev mailing list<br class="gmail_msg">
&gt; <a href="mailto:cdi-dev@lists.jboss.org" class="gmail_msg" target="_blank">cdi-dev@lists.jboss.org</a><br class="gmail_msg">
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" rel="noreferrer" class="gmail_msg" target="_blank">
https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br class="gmail_msg">
&gt;<br class="gmail_msg">
&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" rel="noreferrer" class="gmail_msg" 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 class="gmail_msg">
&gt;<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
Martin Kouba<br class="gmail_msg">
Software Engineer<br class="gmail_msg">
Red Hat, Czech Republic<br class="gmail_msg">
</blockquote>
</div>
</div>
</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>