-
Bug
-
Resolution: Done
-
Major
-
2.2.4.Final
-
None
In the following example with the bean of type Bean declared:
public class GetBeansExtension implements Extension { private <T> void processInjectionTarget(@Observes ProcessInjectionTarget<T> pit, BeanManager manager) { } private void afterBeanDiscovery(@Observes AfterBeanDiscovery abd, BeanManager manager) { manager.getBeans(Bean.class); } }
The result of manager.getBeans(Bean.class) happens to be an empty list.
This happens for others lifecycle events like ProcessAnnotatedType but only when a BeanManager reference is injected in the observer method.