Modifier and Type | Method and Description |
---|---|
<S> Iterable<S> |
getIterableSPI(Class<S> spiType)
Gets an iterator of implementations of the specified SPI.
|
@NotNull <S> Iterable<S> getIterableSPI(@NotNull Class<S> spiType)
This method works as a kind of directory service
for SPIs, allowing various components to define private contract
and talk to each other. However unlike Component.getSPI(java.lang.Class)
, this
method can support cases where there is an ordered collection (defined
by Iterable
of implementations. The SPI contract should define
whether lookups are for the first appropriate implementation or whether
all returned implementations should be used.
Iterable
of the SPI's provided by this object. Iterator may have no values.Copyright © 2015 Oracle Corporation. All rights reserved.