[cdi-dev] [JBoss JIRA] (CDI-547) Resolving sync/async observer methods

Antoine Sabot-Durand (JIRA) issues at jboss.org
Sun Oct 18 07:22:00 EDT 2015


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

Antoine Sabot-Durand commented on CDI-547:
------------------------------------------

IMO {{resolveObserverMethods}} should be "synchronous agnostic". The idea behind this method is to provide a way perform TypeSafe resolution for observers.
In JDK8 it's quite easy to filter the returned set to get sync or async if it's needed.

Regarding confusion, as this method is reserved to advanced developers I don't see it as a real issue.

> Resolving sync/async observer methods
> -------------------------------------
>
>                 Key: CDI-547
>                 URL: https://issues.jboss.org/browse/CDI-547
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>            Reporter: Jozef Hartinger
>
> There's the [BeanManager.resolveObserverMethods()|http://docs.jboss.org/cdi/api/2.0.EDR1/javax/enterprise/inject/spi/BeanManager.html#resolveObserverMethods-T-java.lang.annotation.Annotation...-] method for resolving observer methods.
> With addition of sync/async events and observers it is not unclear what the semantics of this methods are. We'll most likely need to add new or overloaded methods to make it possible to resolve observers for sync/async events.



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


More information about the cdi-dev mailing list