I'm not sure I understand the use case. Could you add some more examples? Also note that beans.xml descriptor is per bean archive. So we can't simply use a single beans.xml for the entire application - unless the bean archive isolation is disabled. For testing purpose a synthetic bean archive introduced in 2.3.0.Final might be useful (see also http://weld.cdi-spec.org/news/2015/08/05/weld-300Alpha12/#_weld_se_bootstrap_api and http://weld.cdi-spec.org/news/2015/04/21/weld-300Alpha8/#_enhanced_api_for_weld_se).
|