[cdi-dev] [JBoss JIRA] (CDI-660) Registration of custom Producer

Martin Kouba (JIRA) issues at jboss.org
Mon Dec 5 03:10:00 EST 2016

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

Martin Kouba commented on CDI-660:

If I understand the description correctly this applies to *@Dependent producers only*. Because normal scoped beans are not bound to a single injection point. In Weld, the manual lookup of the injection point metadata is supported, see also https://github.com/weld/core/blob/master/tests-arquillian/src/test/java/org/jboss/weld/tests/injectionPoint/custom/BarBean.java#L51. I think we should clarify the usage of {{InjectionPoint}} metadata for custom beans and probably extend {{CreationalContext}} to return metadata for {{@Dependent}} beans.

> Registration of custom Producer
> -------------------------------
>                 Key: CDI-660
>                 URL: https://issues.jboss.org/browse/CDI-660
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Beans, Portable Extensions
>            Reporter: John Ament
>             Fix For: 2.1 (Discussion)
> Introduce a feature that would allow a developer to register a custom producer, probably in a portable extension as a lifecycle method, separate from a custom bean implementation.
> The producer would have optional access to the underlying injection point (which bean does not provide) but probably needs to still track:
> - Qualifiers
> - Scope

This message was sent by Atlassian JIRA

More information about the cdi-dev mailing list