T - public interface InstanceProvider<T> extends Iterable<T>, Provider<T>
Provider specialization that provides the ability to:
isUnsatisfied()isAmbiguous()iterator()| Modifier and Type | Method and Description |
|---|---|
boolean |
isAmbiguous()
Determines if there is more than one available implementation for the
required type and qualifiers
|
boolean |
isUnsatisfied()
Determines if there is no available implementation for the required type
and qualifiers.
|
Iterator<T> |
iterator()
When a service has multiple providers (which can be determined by calling
isAmbiguous()) this iterator enumerates each of the available
providers |
forEach, spliteratorboolean isAmbiguous()
boolean isUnsatisfied()
Provider.get()
will raise a RuntimeException