[cdi-dev] [JBoss JIRA] (CDI-693) Introduce a Instance#ifResolved(Consumer<T>) method

Martin Kouba (JIRA) issues at jboss.org
Mon Mar 6 03:54:00 EST 2017


     [ https://issues.jboss.org/browse/CDI-693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Kouba updated CDI-693:
-----------------------------
    Fix Version/s: 2.1 (Discussion)


> Introduce a Instance#ifResolved(Consumer<T>) method
> ---------------------------------------------------
>
>                 Key: CDI-693
>                 URL: https://issues.jboss.org/browse/CDI-693
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>            Reporter: John Ament
>             Fix For: 2.1 (Discussion)
>
>
> in many cases, the logic around isResolvable/isUnsatisfied/isAmbiguous could be replaced by a consumer of the resolved instance.  It would be good to introduce a ifResolved(Consumer<T>) method that consumes the resolved instance, not invoking the consumer if the instance was not resolvable.



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


More information about the cdi-dev mailing list