while chatting with jozef and ales, we had the following idea:
What about just allowing to inject Extensions at bootup (as we already do with BeanManager)?
public doThaTrick(@Observes BeforeBeanDiscovery bbd, MyOtherExtension otherExtension)
{...};
or even:
public doThaTrick(@Observes BeforeBeanDiscovery bbd, Instance<Extension> allExtensions) {...}
;
We would need to clarify 6.7.3 that Extensions, BeanManager, Event, ...(what else being @ApplicationScoped and available at bootup?) must be available for injection into SystemEvent methods.
Closing all resolved issues in CDI 1.x