<div dir="ltr">+1 for Martin. I didn&#39;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&#39;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&#39;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>