[cdi-dev] [JBoss JIRA] (CDI-706) ProducerConfigurator has no method to configure the InjectionPoints

Matej Novotny (JIRA) issues at jboss.org
Mon Jun 12 02:51:00 EDT 2017


    [ https://issues.jboss.org/browse/CDI-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419230#comment-13419230 ] 

Matej Novotny commented on CDI-706:
-----------------------------------

Also one more thing...

bq. So it is effectively not possible to properly *create* a Producer with this Configurator.

Yes, it not. Configurators were meant as a way to alter existing entities (producers in this case; only during {{ProcessProducer}}).
If you wish to create a new one, I think {{BeanConfigurator}} is a better fit as there you define a way to produce such beans from scratch.

> ProducerConfigurator has no method to configure the InjectionPoints
> -------------------------------------------------------------------
>
>                 Key: CDI-706
>                 URL: https://issues.jboss.org/browse/CDI-706
>             Project: CDI Specification Issues
>          Issue Type: Bug
>            Reporter: Mark Struberg
>
> Producer has not only produce() and dispose() but also 
> {noformat}
> Set<InjectionPoint> getInjectionPoints()
> {noformat}
> But this information cannot be set with the ProducerConfigurator.
> So it is effectively not possible to properly create a Producer with this Configurator.
> Or did I miss some trick?



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the cdi-dev mailing list