[
https://issues.jboss.org/browse/CDI-733?page=com.atlassian.jira.plugin.sy...
]
Matej Novotny commented on CDI-733:
-----------------------------------
Just for completeness, Weld also has {{Type}} based select on {{Instance}} -
https://github.com/weld/api/blob/3.0.SP4/weld/src/main/java/org/jboss/wel...
If we want to add this to the spec, please mind the type safety hazard, in Weld we added
[this
line|https://github.com/weld/api/blob/3.0.SP4/weld/src/main/java/org/jbos...]
to ensure that things won't blow up (well, at least not as violently). Invoking
type-based select on anything else then {{Object}} will possibly result in an error.
javax.enterprise.event.Event#select shouldnt use TypeLiteral but
Type
---------------------------------------------------------------------
Key: CDI-733
URL:
https://issues.jboss.org/browse/CDI-733
Project: CDI Specification Issues
Issue Type: Feature Request
Reporter: Romain Manni-Bucau
Priority: Minor
Goal is to enable a bit more meta programming and in particular instantiation of custom
parameterized type of events, currently it requires to go through the bean manager whereas
the event would be a natural place to resolve an event.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)