[cdi-dev] Clarification - how does addPackages work?

Matej Novotny manovotn at redhat.com
Mon May 29 12:40:24 EDT 2017


Hi John,

I can confirm that Weld implements it exactly as you expect it.
E.g. Weld does NOT scan recursively by default.

Matej

----- Original Message -----
> From: "John Ament" <john.ament at spartasystems.com>
> To: "cdi-dev" <cdi-dev at lists.jboss.org>
> Sent: Monday, May 29, 2017 5:17:16 PM
> Subject: [cdi-dev] Clarification - how does addPackages work?
> 
> 
> 
> While porting the CDI spec to the geronimo project, I noticed that
> SeContainerInitializer#addPackages (without the boolean) doesn't specify
> whether its recursive or not. I believe its not recursive but wanted to
> confirm this. E.g. the behavior is the same as calling addPackages(false,
> Package....)
> 
> 
> 
> 
> John
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 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.
> 
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/cdi-dev
> 
> Note that for all code provided on this list, the provider licenses the code
> under the Apache License, Version 2
> (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
> provided on this list, the provider waives all patent and other intellectual
> property rights inherent in such information.


More information about the cdi-dev mailing list