-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
In Weld SE it's possible to pass an existing Extension instance. It might be useful (e.g. for prototyping) to provide an ExtensionBuilder so that it's possible to do something like:
Extension myExtension = new ExtensionBuilder().afterBeanDiscovery((e,m) -> e.addBean().addType(Configuration.class).producing(new Configuration(1))); WeldContainer container = new Weld().addExtension(myExtension).initialize();