]
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.