public interface ObjectProvider<T>
extends ObjectFactory<T>, java.lang.Iterable<T>
A variant of ObjectFactory designed specifically for injection points,
allowing for programmatic optionality and lenient not-unique handling.
As of 5.1, this interface extends Iterable and provides Stream
support. It can be therefore be used in for loops, provides Iterable.forEach(java.util.function.Consumer<? super T>)
iteration and allows for collection-style stream() access.
Return a sequential Stream over all matching object instances,
pre-ordered according to the factory's common order comparator.
In a standard Spring application context, this will be ordered
according to Ordered conventions,
and in case of annotation-based configuration also considering the
analogous to multi-element injection points of list/array type.