[javaee-spec users] [jsr342-experts] Re: Proposal for global CDI enablement

From: Bill Shannon <>
Date: Wed, 19 Dec 2012 17:22:31 -0800

Pete Muir wrote on 12/19/12 04:57:
>> I wouldn't want the container to know the name of beans.xml, nor the schema
>> of beans.xml. I hope the container asks Weld to "load the configuration
>> information for this module" and Weld does all the detection of beans.xml,
>> parsing, etc., and then after that is prepared to answer the container's
>> question of "what level of scanning do I need to do for this module?"
> Kinda, except that it's the container responsibility to load the beans.xml
> file. There is no portable scanning api in Java/Java EE to allow us to detect
> such files.

Wouldn't the container just need to export a "getResource" method that
Weld can use, if Class.getResource isn't good enough?