[cdi-dev] [JBoss JIRA] (CDI-714) No way to access the underlying bean in a producer when using BeanConfigurator

Antoine Sabot-Durand (JIRA) issues at jboss.org
Thu Oct 12 05:33:00 EDT 2017


     [ https://issues.jboss.org/browse/CDI-714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Sabot-Durand updated CDI-714:
-------------------------------------
    Fix Version/s: 2.1 (Discussion)


> No way to access the underlying bean in a producer when using BeanConfigurator
> ------------------------------------------------------------------------------
>
>                 Key: CDI-714
>                 URL: https://issues.jboss.org/browse/CDI-714
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>            Reporter: John Ament
>             Fix For: 2.1 (Discussion)
>
>
> I was reusing an example the Weld guys pointed me at.  
> {code}
> InjectionPoint ip = (InjectionPoint)bm.getInjectableReference(new EmptyInjectionPoint(be...), cc);
> {code}
> The problem is that I'm using the configurator to create the bean, and the resulting function for the producer doesn't have access to the bean that was created.
> {code}
> abd.addBean()
>                     .addQualifiers(new ClaimLiteral("", Claims.UNKNOWN))
>                     .addType(type)
>                     .scope(Dependent.class)
>                     .createWith(ClaimProducer.INSTANCE);
> {code}
> So because of this, I have no way to get the injection point.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the cdi-dev mailing list