[cdi-dev] [JBoss JIRA] (CDI-733) javax.enterprise.event.Event#select shouldnt use TypeLiteral but Type

Martin Kouba (JIRA) issues at jboss.org
Wed Aug 15 01:28:00 EDT 2018


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

Martin Kouba commented on CDI-733:
----------------------------------

It should use both. The problem with {{java.lang.reflect.Type}} param is type safety which cannot be guaranteed. FYI Weld API already allows to use {{Type}} parameter for {{Event<Object>}}: https://github.com/weld/api/blob/3.0.SP4/weld/src/main/java/org/jboss/weld/events/WeldEvent.java#L32-L47

> 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)


More information about the cdi-dev mailing list