Interface DownsamplerSpiRegistry
- All Known Implementing Classes:
DownsamplerSpiRegistryImpl
public interface DownsamplerSpiRegistry
Created by obarrile on 12/04/2019.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddDownsamplerSpi(String downsamplerAlias, DownsamplerSpi downsamplerSpi) Adds the givendownsamplerSpito this registry.booleanaddDownsamplerSpi(DownsamplerSpi downsamplerSpi) Adds the givendownsamplerSpito this registry.Gets a set of all aliasesgetDownsamplerSpi(String alias) Gets a registered upsampler SPI.Gets theServiceRegistryvoidLoads the SPIs defined inMETA-INF/services.booleanremoveDownsamplerSpi(DownsamplerSpi downsamplerSpi) Removes the givendownsamplerSpithis registry.
-
Method Details
-
loadDownsamplerSpis
void loadDownsamplerSpis()Loads the SPIs defined inMETA-INF/services. -
getDownsamplerSpis
Set<DownsamplerSpi> getDownsamplerSpis()- Returns:
- The set of all registered downsampler SPIs.
-
getServiceRegistry
ServiceRegistry<DownsamplerSpi> getServiceRegistry()Gets theServiceRegistry- Returns:
- the
service registry
-
getDownsamplerSpi
Gets a registered upsampler SPI.- Parameters:
alias- a name identifying the upsampler SPI.- Returns:
- the upsampler SPI, or
null
-
addDownsamplerSpi
Adds the givendownsamplerSpito this registry.- Parameters:
downsamplerSpi- the SPI to add- Returns:
true, if theDownsamplerSpicould be successfully added, otherwisefalse
-
addDownsamplerSpi
Adds the givendownsamplerSpito this registry.- Parameters:
downsamplerSpi- the SPI to add- Returns:
true, if theDownsamplerSpicould be successfully added, otherwisefalse
-
removeDownsamplerSpi
Removes the givendownsamplerSpithis registry.- Parameters:
downsamplerSpi- 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
-