Interface UpsamplerSpiRegistry
-
- All Known Implementing Classes:
UpsamplerSpiRegistryImpl
public interface UpsamplerSpiRegistryCreated by obarrile on 11/04/2019.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddUpsamplerSpi(String upsamplerAlias, UpsamplerSpi upsamplerSpi)Adds the givenupsamplerSpito this registry.booleanaddUpsamplerSpi(UpsamplerSpi upsamplerSpi)Adds the givenupsamplerSpito this registry.SetgetAliases()Gets a set of all aliasesServiceRegistry<UpsamplerSpi>getServiceRegistry()Gets theServiceRegistryUpsamplerSpigetUpsamplerSpi(String alias)Gets a registered upsampler SPI.Set<UpsamplerSpi>getUpsamplerSpis()voidloadUpsamplerSpis()Loads the SPIs defined inMETA-INF/services.booleanremoveUpsamplerSpi(UpsamplerSpi upsamplerSpi)Removes the givenupsamplerSpithis 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 givenupsamplerSpito this registry.- Parameters:
upsamplerSpi- the SPI to add- Returns:
true, if theUpsamplerSpicould be successfully added, otherwisefalse
-
addUpsamplerSpi
boolean addUpsamplerSpi(String upsamplerAlias, UpsamplerSpi upsamplerSpi)
Adds the givenupsamplerSpito this registry.- Parameters:
upsamplerSpi- the SPI to add- Returns:
true, if theUpsamplerSpicould be successfully added, otherwisefalse
-
removeUpsamplerSpi
boolean removeUpsamplerSpi(UpsamplerSpi upsamplerSpi)
Removes the givenupsamplerSpithis 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
-
-