Let me try no-op ServiceRegistry first ...
This looks like it might work.
But then I hit another issue: BeanDeploymentArchiveImpl::getBeansXml
public BeansXml getBeansXml()
{
Collection<URL> urls = archive.getXmlURLs();
if (urls.isEmpty())
{
return BeansXml.EMPTY_BEANS_XML;
}
return bootstrap.parse(urls);
}
The problem is that lib BDAs don't have bootstrap.
And bootstrap impl is only available in weld-core, which is dynamically added to deployments != libs.
I could duplicate all beans xml parsing logic from weld-core,
but I don't see a reason why this couldn't be put into spi?
Pete?