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

John Ament (JIRA) issues at jboss.org
Sun Mar 5 22:20:00 EST 2017

John Ament created CDI-693:

             Summary: 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

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

More information about the cdi-dev mailing list