[cdi-dev] [JBoss JIRA] (CDI-633) Intoroduce BeanManager.event()

Matej Novotny (JIRA) issues at jboss.org
Mon Oct 10 06:29:00 EDT 2016


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

Matej Novotny commented on CDI-633:
-----------------------------------

I see, you cannot do anything with {{Event}} before deployment validation phase, so it won't help.
Since you only have BM at that point, the solution would be to add another BM method, which would allow to explicitly state the type as well, is that correct?
Something along these lines:
{code}
BeanManager#fire(type, event, qualifiers)
{code}

> Intoroduce BeanManager.event()
> ------------------------------
>
>                 Key: CDI-633
>                 URL: https://issues.jboss.org/browse/CDI-633
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>            Reporter: Martin Kouba
>             Fix For: 2.0 .Final
>
>
> * this would allow to define the _specified type_ - the container may use the specified type to infer the parameterized type of the event types
> * the method should return {{javax.enterprise.event.Event<Object>}} with no qualifiers



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the cdi-dev mailing list