[
https://issues.jboss.org/browse/CDI-660?page=com.atlassian.jira.plugin.sy...
]
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/o....
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
(v7.2.3#72005)