How can I programmatically inject a Java CDI 1.1+ managed bean into a local variable in a static method?
To inject an instance of class C:
C
javax.enterprise.inject.spi.CDI.current().select(C.class).get()
This is available in CDI 1.1+