<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>If I had to guess, by default method you're thinking something like this:</p>
<p><br>
</p>
<p></p>
<div>&nbsp; &nbsp; public default SeContainerInitializer addPackages(Class&lt;?&gt;... classes) {</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; return addPackages(false, classes);</div>
<div>&nbsp; &nbsp; }</div>
<br>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Symbol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;">
<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 &lt;mkouba@redhat.com&gt;<br>
<b>Sent:</b> Tuesday, May 30, 2017 2:27 AM<br>
<b>To:</b> Matej Novotny<br>
<b>Cc:</b> John Ament; cdi-dev<br>
<b>Subject:</b> Re: [cdi-dev] Clarification - how does addPackages work?</font>
<div>&nbsp;</div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Dne 30.5.2017 v 08:25 Matej Novotny napsal(a):<br>
&gt;&gt; In fact, this method should probably have a default impl<br>
&gt; <br>
&gt; &#43;1 for such default impl, that would make perfect sense.<br>
&gt; <br>
&gt;&gt; Otherwise the wording seems accurate<br>
&gt; <br>
&gt; What wording? I glanced at spec/javadoc and it doesn't seem to mention whether it is by default recursive.<br>
<br>
Exactly. It's very clear that only classes from the packages of the <br>
specified classes will be added. Note that Java does not define anything <br>
like a &quot;subpackage&quot;.<br>
<br>
&gt; <br>
&gt; Matej<br>
&gt; <br>
&gt; ----- Original Message -----<br>
&gt;&gt; From: &quot;Martin Kouba&quot; &lt;mkouba@redhat.com&gt;<br>
&gt;&gt; To: &quot;Matej Novotny&quot; &lt;manovotn@redhat.com&gt;, &quot;John Ament&quot; &lt;john.ament@spartasystems.com&gt;<br>
&gt;&gt; Cc: &quot;cdi-dev&quot; &lt;cdi-dev@lists.jboss.org&gt;<br>
&gt;&gt; Sent: Tuesday, May 30, 2017 7:33:50 AM<br>
&gt;&gt; Subject: Re: [cdi-dev] Clarification - how does addPackages work?<br>
&gt;&gt;<br>
&gt;&gt; In fact, this method should probably have a default impl calling<br>
&gt;&gt; addPackages(false, packageClasses). Otherwise the wording seems accurate<br>
&gt;&gt; to me.<br>
&gt;&gt;<br>
&gt;&gt; Martin<br>
&gt;&gt;<br>
&gt;&gt; Dne 29.5.2017 v 18:40 Matej Novotny napsal(a):<br>
&gt;&gt;&gt; Hi John,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I can confirm that Weld implements it exactly as you expect it.<br>
&gt;&gt;&gt; E.g. Weld does NOT scan recursively by default.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Matej<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ----- Original Message -----<br>
&gt;&gt;&gt;&gt; From: &quot;John Ament&quot; &lt;john.ament@spartasystems.com&gt;<br>
&gt;&gt;&gt;&gt; To: &quot;cdi-dev&quot; &lt;cdi-dev@lists.jboss.org&gt;<br>
&gt;&gt;&gt;&gt; Sent: Monday, May 29, 2017 5:17:16 PM<br>
&gt;&gt;&gt;&gt; Subject: [cdi-dev] Clarification - how does addPackages work?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; While porting the CDI spec to the geronimo project, I noticed that<br>
&gt;&gt;&gt;&gt; SeContainerInitializer#addPackages (without the boolean) doesn't specify<br>
&gt;&gt;&gt;&gt; whether its recursive or not. I believe its not recursive but wanted to<br>
&gt;&gt;&gt;&gt; confirm this. E.g. the behavior is the same as calling addPackages(false,<br>
&gt;&gt;&gt;&gt; Package....)<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; John<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; NOTICE: This e-mail message and any attachments may contain confidential,<br>
&gt;&gt;&gt;&gt; proprietary, and/or privileged information which should be treated<br>
&gt;&gt;&gt;&gt; accordingly. If you are not the intended recipient, please notify the<br>
&gt;&gt;&gt;&gt; sender<br>
&gt;&gt;&gt;&gt; immediately by return e-mail, delete this message, and destroy all<br>
&gt;&gt;&gt;&gt; physical<br>
&gt;&gt;&gt;&gt; and electronic copies. Thank you.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; cdi-dev mailing list<br>
&gt;&gt;&gt;&gt; cdi-dev@lists.jboss.org<br>
&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" id="LPlnk539004">
https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Note that for all code provided on this list, the provider licenses the<br>
&gt;&gt;&gt;&gt; code<br>
&gt;&gt;&gt;&gt; under the Apache License, Version 2<br>
&gt;&gt;&gt;&gt; (<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<br>
&gt;&gt;&gt;&gt; provided on this list, the provider waives all patent and other<br>
&gt;&gt;&gt;&gt; intellectual<br>
&gt;&gt;&gt;&gt; property rights inherent in such information.<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; cdi-dev mailing list<br>
&gt;&gt;&gt; cdi-dev@lists.jboss.org<br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Note that for all code provided on this list, the provider licenses the<br>
&gt;&gt;&gt; code under the Apache License, Version 2<br>
&gt;&gt;&gt; (<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<br>
&gt;&gt;&gt; provided on this list, the provider waives all patent and other<br>
&gt;&gt;&gt; intellectual property rights inherent in such information.<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Martin Kouba<br>
&gt;&gt; Senior Software Engineer<br>
&gt;&gt; Red Hat, Czech Republic<br>
&gt;&gt;<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>