<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>Makes sense if we want to add &quot;as a bean&quot; to the discovered text as a classifier for its usage.</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> Emily Jiang &lt;EMIJIANG@uk.ibm.com&gt;<br>
<b>Sent:</b> Monday, November 21, 2016 12:05 PM<br>
<b>To:</b> Martin Kouba<br>
<b>Cc:</b> John Ament; Antoine Sabot-Durand; 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><font size="2" face="sans-serif">&#43;1 on Martin's suggestion!</font> <br>
<font size="2" face="sans-serif">How about the following rewording?</font> <br>
<tt><font size="2">&nbsp;&quot;If an explicit bean archive contains the `&lt;trim/&gt;` element in its `beans.xml` file, then for a
<b>type </b>to be <b>discovered </b>it must have either a<br>
scope annotation (normal or pseudo) or a bean defining annotation (as defined in &lt;&lt;bean_defining_annotations&gt;&gt;)&quot;</font></tt>
<br>
<font size="2" face="sans-serif">=&gt;</font> <br>
<tt><font size="2">&nbsp;&quot;If an explicit bean archive contains the `&lt;trim/&gt;` element in its `beans.xml` file, then for a
<b>class </b>to be <b>discovered as a bean</b> it must have either a scope annotation (normal or pseudo) or a bean defining annotation (as defined in &lt;&lt;bean_defining_annotations&gt;&gt;)&quot;</font></tt>
<br>
<br>
<font size="2" face="sans-serif">Many thanks,<br>
Emily<br>
===========================<br>
Emily Jiang<br>
WebSphere Application Server, CDI Development Lead</font> <br>
<font size="2" face="sans-serif">&nbsp;<br>
MP 211, DE3A20, Winchester, Hampshire, England, SO21 2JN<br>
Phone: &nbsp;&#43;44 (0)1962 816278 &nbsp;Internal: 246278<br>
<br>
Email: emijiang@uk.ibm.com <br>
Lotus Notes: Emily Jiang/UK/IBM@IBMGB<br>
</font><br>
<br>
<br>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">From: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size="1" face="sans-serif">Martin Kouba &lt;mkouba@redhat.com&gt;</font>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">To: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size="1" face="sans-serif">John Ament &lt;john.ament@spartasystems.com&gt;, Antoine Sabot-Durand &lt;antoine@sabot-durand.net&gt;, CDI Java EE Specification &lt;cdi-dev@lists.jboss.org&gt;</font>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">Date: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size="1" face="sans-serif">21/11/2016 14:34</font>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">Subject: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size="1" face="sans-serif">Re: [cdi-dev] Need native speaker for CDI-420 (trim) reword</font>
<br>
<font size="1" color="#5f5f5f" face="sans-serif">Sent by: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size="1" face="sans-serif">cdi-dev-bounces@lists.jboss.org</font>
<br>
<hr noshade="">
<br>
<br>
<br>
<tt><font size="2">Well, we're discussing the spec wording which should be clear and
<br>
accurate. What users follow or not is a different thing, and should be <br>
covered in tutorials, blogposts and docs.<br>
<br>
To sum it up:<br>
<br>
* type discovery is covered in &quot;12.4.1. Type discovery&quot;<br>
* the &quot;trimming&quot; process happens AFTER type discovery and BEFORE bean <br>
discovery (&quot;12.4.3. Bean discovery&quot;)<br>
<br>
Therefore, we cannot say that &quot;for a type to be discovered it must <br>
have...&quot; because for trimmed archives the type is always discovered and <br>
then, if it does not meet the conditions, thrown away (no beans are <br>
created from it).<br>
<br>
Martin<br>
<br>
Dne 21.11.2016 v 14:53 John Ament napsal(a):<br>
&gt; What you're referring to is a nuance that most users don't follow. &nbsp;A<br>
&gt; PAT is fired for essentially every class found. &nbsp;If this works<br>
&gt; differently (e.g. for bean-discovery-mode=none) then it may be worth<br>
&gt; calling this out, but as of now it should be implicit that PAT works<br>
&gt; differently.<br>
&gt;<br>
&gt;<br>
&gt; John<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; *From:* Antoine Sabot-Durand &lt;antoine@sabot-durand.net&gt;<br>
&gt; *Sent:* Monday, November 21, 2016 5:07 AM<br>
&gt; *To:* Martin Kouba; John Ament; CDI Java EE Specification<br>
&gt; *Subject:* Re: [cdi-dev] Need native speaker for CDI-420 (trim) reword<br>
&gt;<br>
&gt; &#43;1 for Martin. I didn't read with enough attention. All Types should be<br>
&gt; discovered like in All bean-discovery mode , but only those with bean<br>
&gt; defining annotation or scope should be eligible to become beans.<br>
&gt;<br>
&gt; On Mon, Nov 21, 2016 at 9:15 AM Martin Kouba &lt;mkouba@redhat.com<br>
&gt; &lt;</font></tt><a href="mailto:mkouba@redhat.com"><tt><font size="2">mailto:mkouba@redhat.com</font></tt></a><tt><font size="2">&gt;&gt; wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp; Hi John,<br>
&gt;<br>
&gt; &nbsp; &nbsp; sounds good but is not entirely correct because those type ARE actually<br>
&gt; &nbsp; &nbsp; discovered (ProcessAnnotatedType is fired etc.) and then removed (if<br>
&gt; &nbsp; &nbsp; necessary) from the set of discovered types before the &quot;Bean discovery&quot;<br>
&gt; &nbsp; &nbsp; phase.<br>
&gt;<br>
&gt; &nbsp; &nbsp; Martin<br>
&gt;<br>
&gt; &nbsp; &nbsp; Dne 18.11.2016 v 16:50 John Ament napsal(a):<br>
&gt; &nbsp; &nbsp; &gt; Here's my take..<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; &quot;If an explicit bean archive contains the `&lt;trim/&gt;` element in its<br>
&gt; &nbsp; &nbsp; &gt; `beans.xml` file, then for a type to be discovered it must have<br>
&gt; &nbsp; &nbsp; either a<br>
&gt; &nbsp; &nbsp; &gt; scope annotation (normal or pseudo) or a bean defining annotation (as<br>
&gt; &nbsp; &nbsp; &gt; defined in &lt;&lt;bean_defining_annotations&gt;&gt;)&quot;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; John<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; ------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp; &gt; *From:* cdi-dev-bounces@lists.jboss.org<br>
&gt; &nbsp; &nbsp; &lt;</font></tt><a href="mailto:cdi-dev-bounces@lists.jboss.org"><tt><font size="2">mailto:cdi-dev-bounces@lists.jboss.org</font></tt></a><tt><font size="2">&gt;<br>
&gt; &nbsp; &nbsp; &gt; &lt;cdi-dev-bounces@lists.jboss.org<br>
&gt; &nbsp; &nbsp; &lt;</font></tt><a href="mailto:cdi-dev-bounces@lists.jboss.org"><tt><font size="2">mailto:cdi-dev-bounces@lists.jboss.org</font></tt></a><tt><font size="2">&gt;&gt; on behalf of Antoine<br>
&gt; &nbsp; &nbsp; Sabot-Durand<br>
&gt; &nbsp; &nbsp; &gt; &lt;antoine@sabot-durand.net &lt;</font></tt><a href="mailto:antoine@sabot-durand.net"><tt><font size="2">mailto:antoine@sabot-durand.net</font></tt></a><tt><font size="2">&gt;&gt;<br>
&gt; &nbsp; &nbsp; &gt; *Sent:* Friday, November 18, 2016 9:30 AM<br>
&gt; &nbsp; &nbsp; &gt; *To:* CDI Java EE Specification<br>
&gt; &nbsp; &nbsp; &gt; *Subject:* [cdi-dev] Need native speaker for CDI-420 (trim) reword<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Hi all,<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; With Martin, we reword the &lt;trim/&gt; section like:<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; &quot;If an explicit bean archive contains the `&lt;trim/&gt;` element in its<br>
&gt; &nbsp; &nbsp; &gt; `beans.xml` file, types that don't have either a bean defining<br>
&gt; &nbsp; &nbsp; &gt; annotation (as defined in &lt;&lt;bean_defining_annotations&gt;&gt;) or any scope<br>
&gt; &nbsp; &nbsp; &gt; annotation, are removed from the set of discovered types.&quot;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Grammar feedback from native speaker is most welcome.<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Antoine<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; ------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp; &gt; NOTICE: This e-mail message and any attachments may contain<br>
&gt; &nbsp; &nbsp; &gt; confidential, proprietary, and/or privileged information which<br>
&gt; &nbsp; &nbsp; should be<br>
&gt; &nbsp; &nbsp; &gt; treated accordingly. If you are not the intended recipient, please<br>
&gt; &nbsp; &nbsp; &gt; notify the sender immediately by return e-mail, delete this<br>
&gt; &nbsp; &nbsp; message, and<br>
&gt; &nbsp; &nbsp; &gt; destroy all physical and electronic copies. Thank you.<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; _______________________________________________<br>
&gt; &nbsp; &nbsp; &gt; cdi-dev mailing list<br>
&gt; &nbsp; &nbsp; &gt; cdi-dev@lists.jboss.org &lt;</font></tt><a href="mailto:cdi-dev@lists.jboss.org"><tt><font size="2">mailto:cdi-dev@lists.jboss.org</font></tt></a><tt><font size="2">&gt;<br>
&gt; &nbsp; &nbsp; &gt; </font></tt><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev"><tt><font size="2">https://lists.jboss.org/mailman/listinfo/cdi-dev</font></tt></a><tt><font size="2"><br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Note that for all code provided on this list, the provider<br>
&gt; &nbsp; &nbsp; licenses the code under the Apache License, Version 2<br>
&gt; &nbsp; &nbsp; (</font></tt><a href="http://www.apache.org/licenses/LICENSE-2.0.html"><tt><font size="2">http://www.apache.org/licenses/LICENSE-2.0.html</font></tt></a><tt><font size="2">). For all other<br>
&gt; &nbsp; &nbsp; ideas provided on this list, the provider waives all patent and<br>
&gt; &nbsp; &nbsp; other intellectual property rights inherent in such information.<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; --<br>
&gt; &nbsp; &nbsp; Martin Kouba<br>
&gt; &nbsp; &nbsp; Software Engineer<br>
&gt; &nbsp; &nbsp; Red Hat, Czech Republic<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>
<br>
-- <br>
Martin Kouba<br>
Software Engineer<br>
Red Hat, Czech Republic<br>
_______________________________________________<br>
cdi-dev mailing list<br>
cdi-dev@lists.jboss.org<br>
</font></tt><a href="https://lists.jboss.org/mailman/listinfo/cdi-dev"><tt><font size="2">https://lists.jboss.org/mailman/listinfo/cdi-dev</font></tt></a><tt><font size="2"><br>
<br>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (</font></tt><a href="http://www.apache.org/licenses/LICENSE-2.0.html"><tt><font size="2">http://www.apache.org/licenses/LICENSE-2.0.html</font></tt></a><tt><font size="2">).
 For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
<br>
</font></tt><br>
<font size="2" face="sans-serif"><br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number 741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU<br>
</font></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>