Interface UpsamplerSpiRegistry
-
- All Known Implementing Classes:
UpsamplerSpiRegistryImpl
public interface UpsamplerSpiRegistry
Created by obarrile on 11/04/2019.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addUpsamplerSpi(String upsamplerAlias, UpsamplerSpi upsamplerSpi)
Adds the givenupsamplerSpi
to this registry.boolean
addUpsamplerSpi(UpsamplerSpi upsamplerSpi)
Adds the givenupsamplerSpi
to this registry.Set
getAliases()
Gets a set of all aliasesServiceRegistry<UpsamplerSpi>
getServiceRegistry()
Gets theServiceRegistry
UpsamplerSpi
getUpsamplerSpi(String alias)
Gets a registered upsampler SPI.Set<UpsamplerSpi>
getUpsamplerSpis()
void
loadUpsamplerSpis()
Loads the SPIs defined inMETA-INF/services
.boolean
removeUpsamplerSpi(UpsamplerSpi upsamplerSpi)
Removes the givenupsamplerSpi
this registry.
-
-
-
Method Detail
-
loadUpsamplerSpis
void loadUpsamplerSpis()
Loads the SPIs defined inMETA-INF/services
.
-
getUpsamplerSpis
Set<UpsamplerSpi> getUpsamplerSpis()
- Returns:
- The set of all registered operator SPIs.
- Since:
- BEAM 5
-
getServiceRegistry
ServiceRegistry<UpsamplerSpi> getServiceRegistry()
Gets theServiceRegistry
- Returns:
- the
service registry
-
getUpsamplerSpi
UpsamplerSpi getUpsamplerSpi(String alias)
Gets a registered upsampler SPI.- Parameters:
alias
- a name identifying the upsampler SPI.- Returns:
- the upsampler SPI, or
null
-
addUpsamplerSpi
boolean addUpsamplerSpi(UpsamplerSpi upsamplerSpi)
Adds the givenupsamplerSpi
to this registry.- Parameters:
upsamplerSpi
- the SPI to add- Returns:
true
, if theUpsamplerSpi
could be successfully added, otherwisefalse
-
addUpsamplerSpi
boolean addUpsamplerSpi(String upsamplerAlias, UpsamplerSpi upsamplerSpi)
Adds the givenupsamplerSpi
to this registry.- Parameters:
upsamplerSpi
- the SPI to add- Returns:
true
, if theUpsamplerSpi
could be successfully added, otherwisefalse
-
removeUpsamplerSpi
boolean removeUpsamplerSpi(UpsamplerSpi upsamplerSpi)
Removes the givenupsamplerSpi
this registry.- Parameters:
upsamplerSpi
- the SPI to remove- Returns:
true
, if the SPI could be removed, otherwisefalse
-
getAliases
Set getAliases()
Gets a set of all aliases- Returns:
- the Set<string> of alias keys
-
-