Ales, why should I add it to bootstrap?I mean, can't I just scan the lib dirs as part of the first weld deployment instead of doing it on bootstrap? What are the advantages of doing otherwise?
Exactly for the reason you have a 2nd question. :-)
Another question: once I determine that a specific jar in lib has the META-INF/beans.xml file, what is the cleanest way of retrieving the corresponding lib ClassLoader?
Adding some "listener" service at bootstrap would mean we could somehow
add a mechanism that would, for every lib added to cl domain, check if there is some beans.xml.
I can look into it what would be the best way to do this.
Unless you wanna do it yourself.