[cdi-dev] [JBoss JIRA] (CDI-609) Clarify behaviour of ObserverMethodConfigurator<T> read

Tomas Remes (JIRA) issues at jboss.org
Mon Nov 28 07:03:00 EST 2016


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

Tomas Remes commented on CDI-609:
---------------------------------

I think this could marked as resolved once https://github.com/cdi-spec/cdi/pull/340 is merged.

> Clarify behaviour of ObserverMethodConfigurator<T> read
> -------------------------------------------------------
>
>                 Key: CDI-609
>                 URL: https://issues.jboss.org/browse/CDI-609
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>    Affects Versions: 2.0-EDR2
>            Reporter: Tomas Remes
>
> It's not clear what should happen in case if you are using ObserverMethodConfigurator and attempting to read from a method ({{Method}}, {{AnnotatedMethod}}) which doesn't have any parameter annotated @Observes. E.g something like this in ABD lifecycle event ("observesMelon" doesn't have any @Observes):
> {code}
> Method melonMethod = FruitObserver.class.getMethod("observesMelon", Melon.class);
> abd.addObserverMethod().read(melonMethod)
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the cdi-dev mailing list