<div dir="ltr">+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 <<a href="mailto:mkouba@redhat.com">mkouba@redhat.com</a>> 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 "Bean discovery"<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">
> Here's my take..<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> "If an explicit bean archive contains the `<trim/>` element in its<br class="gmail_msg">
> `beans.xml` file, then for a type to be discovered it must have either a<br class="gmail_msg">
> scope annotation (normal or pseudo) or a bean defining annotation (as<br class="gmail_msg">
> defined in <<bean_defining_annotations>>)"<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> John<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> ------------------------------------------------------------------------<br class="gmail_msg">
> *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">
> <<a href="mailto:cdi-dev-bounces@lists.jboss.org" class="gmail_msg" target="_blank">cdi-dev-bounces@lists.jboss.org</a>> on behalf of Antoine Sabot-Durand<br class="gmail_msg">
> <<a href="mailto:antoine@sabot-durand.net" class="gmail_msg" target="_blank">antoine@sabot-durand.net</a>><br class="gmail_msg">
> *Sent:* Friday, November 18, 2016 9:30 AM<br class="gmail_msg">
> *To:* CDI Java EE Specification<br class="gmail_msg">
> *Subject:* [cdi-dev] Need native speaker for CDI-420 (trim) reword<br class="gmail_msg">
><br class="gmail_msg">
> Hi all,<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> With Martin, we reword the <trim/> section like:<br class="gmail_msg">
><br class="gmail_msg">
> "If an explicit bean archive contains the `<trim/>` element in its<br class="gmail_msg">
> `beans.xml` file, types that don't have either a bean defining<br class="gmail_msg">
> annotation (as defined in <<bean_defining_annotations>>) or any scope<br class="gmail_msg">
> annotation, are removed from the set of discovered types."<br class="gmail_msg">
><br class="gmail_msg">
> Grammar feedback from native speaker is most welcome.<br class="gmail_msg">
><br class="gmail_msg">
> Antoine<br class="gmail_msg">
> ------------------------------------------------------------------------<br class="gmail_msg">
> NOTICE: This e-mail message and any attachments may contain<br class="gmail_msg">
> confidential, proprietary, and/or privileged information which should be<br class="gmail_msg">
> treated accordingly. If you are not the intended recipient, please<br class="gmail_msg">
> notify the sender immediately by return e-mail, delete this message, and<br class="gmail_msg">
> destroy all physical and electronic copies. Thank you.<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> _______________________________________________<br class="gmail_msg">
> cdi-dev mailing list<br class="gmail_msg">
> <a href="mailto:cdi-dev@lists.jboss.org" class="gmail_msg" target="_blank">cdi-dev@lists.jboss.org</a><br class="gmail_msg">
> <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">
><br class="gmail_msg">
> 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">
><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>