<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> public default SeContainerInitializer addPackages(Class<?>... classes) {</div>
<div> return addPackages(false, classes);</div>
<div> }</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, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", 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 <mkouba@redhat.com><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> </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>
>> In fact, this method should probably have a default impl<br>
> <br>
> +1 for such default impl, that would make perfect sense.<br>
> <br>
>> Otherwise the wording seems accurate<br>
> <br>
> 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 "subpackage".<br>
<br>
> <br>
> Matej<br>
> <br>
> ----- Original Message -----<br>
>> From: "Martin Kouba" <mkouba@redhat.com><br>
>> To: "Matej Novotny" <manovotn@redhat.com>, "John Ament" <john.ament@spartasystems.com><br>
>> Cc: "cdi-dev" <cdi-dev@lists.jboss.org><br>
>> Sent: Tuesday, May 30, 2017 7:33:50 AM<br>
>> Subject: Re: [cdi-dev] Clarification - how does addPackages work?<br>
>><br>
>> In fact, this method should probably have a default impl calling<br>
>> addPackages(false, packageClasses). Otherwise the wording seems accurate<br>
>> to me.<br>
>><br>
>> Martin<br>
>><br>
>> Dne 29.5.2017 v 18:40 Matej Novotny napsal(a):<br>
>>> Hi John,<br>
>>><br>
>>> I can confirm that Weld implements it exactly as you expect it.<br>
>>> E.g. Weld does NOT scan recursively by default.<br>
>>><br>
>>> Matej<br>
>>><br>
>>> ----- Original Message -----<br>
>>>> From: "John Ament" <john.ament@spartasystems.com><br>
>>>> To: "cdi-dev" <cdi-dev@lists.jboss.org><br>
>>>> Sent: Monday, May 29, 2017 5:17:16 PM<br>
>>>> Subject: [cdi-dev] Clarification - how does addPackages work?<br>
>>>><br>
>>>><br>
>>>><br>
>>>> While porting the CDI spec to the geronimo project, I noticed that<br>
>>>> SeContainerInitializer#addPackages (without the boolean) doesn't specify<br>
>>>> whether its recursive or not. I believe its not recursive but wanted to<br>
>>>> confirm this. E.g. the behavior is the same as calling addPackages(false,<br>
>>>> Package....)<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> John<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> NOTICE: This e-mail message and any attachments may contain confidential,<br>
>>>> proprietary, and/or privileged information which should be treated<br>
>>>> accordingly. If you are not the intended recipient, please notify the<br>
>>>> sender<br>
>>>> immediately by return e-mail, delete this message, and destroy all<br>
>>>> physical<br>
>>>> and electronic copies. Thank you.<br>
>>>><br>
>>>> _______________________________________________<br>
>>>> cdi-dev mailing list<br>
>>>> cdi-dev@lists.jboss.org<br>
>>>> <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" id="LPlnk539004">
https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
>>>><br>
>>>> Note that for all code provided on this list, the provider licenses the<br>
>>>> code<br>
>>>> under the Apache License, Version 2<br>
>>>> (<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>
>>>> provided on this list, the provider waives all patent and other<br>
>>>> intellectual<br>
>>>> property rights inherent in such information.<br>
>>> _______________________________________________<br>
>>> cdi-dev mailing list<br>
>>> cdi-dev@lists.jboss.org<br>
>>> <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
>>><br>
>>> Note that for all code provided on this list, the provider licenses the<br>
>>> code under the Apache License, Version 2<br>
>>> (<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>
>>> provided on this list, the provider waives all patent and other<br>
>>> intellectual property rights inherent in such information.<br>
>>><br>
>><br>
>> --<br>
>> Martin Kouba<br>
>> Senior Software Engineer<br>
>> Red Hat, Czech Republic<br>
>><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>