-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
-
-
JBDS shows No bean is eligible for injection to the injection point warning for injection points where the beans are provided by an extension in the ABD event:
ByIdExtensionTest.java
@Inject @ById("rbenevides") private Person rafael;
- shows No bean is eligible for injection to the injection point [JSR-299 §5.2.1]
ByIdExtension.java
public void afterBeanDiscovery(@Observes AfterBeanDiscovery abd, BeanManager bm) { for (final String idValue : ids) { BeanBuilder<Person> beanBuilder = new BeanBuilder<Person>(bm) .beanClass(Person.class) .types(Person.class, Object. .qualifiers(new ByIdLiteral(idValue)) .beanLifecycle(new PersonContextualLifecycle(idValue)); abd.addBean(beanBuilder.create()); } }