Interface UpsamplerSpiRegistry
- All Known Implementing Classes:
UpsamplerSpiRegistryImpl
public interface UpsamplerSpiRegistry
Created by obarrile on 11/04/2019.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddUpsamplerSpi(String upsamplerAlias, UpsamplerSpi upsamplerSpi) Adds the givenupsamplerSpito this registry.booleanaddUpsamplerSpi(UpsamplerSpi upsamplerSpi) Adds the givenupsamplerSpito this registry.Gets a set of all aliasesGets theServiceRegistrygetUpsamplerSpi(String alias) Gets a registered upsampler SPI.voidLoads the SPIs defined inMETA-INF/services.booleanremoveUpsamplerSpi(UpsamplerSpi upsamplerSpi) Removes the givenupsamplerSpithis registry.
-
Method Details
-
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
Gets a registered upsampler SPI.- Parameters:
alias- a name identifying the upsampler SPI.- Returns:
- the upsampler SPI, or
null
-
addUpsamplerSpi
Adds the givenupsamplerSpito this registry.- Parameters:
upsamplerSpi- the SPI to add- Returns:
true, if theUpsamplerSpicould be successfully added, otherwisefalse
-
addUpsamplerSpi
Adds the givenupsamplerSpito this registry.- Parameters:
upsamplerSpi- the SPI to add- Returns:
true, if theUpsamplerSpicould be successfully added, otherwisefalse
-
removeUpsamplerSpi
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
-