Interface DownsamplerSpiRegistry
-
- All Known Implementing Classes:
DownsamplerSpiRegistryImpl
public interface DownsamplerSpiRegistryCreated by obarrile on 12/04/2019.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddDownsamplerSpi(String downsamplerAlias, DownsamplerSpi downsamplerSpi)Adds the givendownsamplerSpito this registry.booleanaddDownsamplerSpi(DownsamplerSpi downsamplerSpi)Adds the givendownsamplerSpito this registry.SetgetAliases()Gets a set of all aliasesDownsamplerSpigetDownsamplerSpi(String alias)Gets a registered upsampler SPI.Set<DownsamplerSpi>getDownsamplerSpis()ServiceRegistry<DownsamplerSpi>getServiceRegistry()Gets theServiceRegistryvoidloadDownsamplerSpis()Loads the SPIs defined inMETA-INF/services.booleanremoveDownsamplerSpi(DownsamplerSpi downsamplerSpi)Removes the givendownsamplerSpithis registry.
-
-
-
Method Detail
-
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
DownsamplerSpi getDownsamplerSpi(String alias)
Gets a registered upsampler SPI.- Parameters:
alias- a name identifying the upsampler SPI.- Returns:
- the upsampler SPI, or
null
-
addDownsamplerSpi
boolean addDownsamplerSpi(DownsamplerSpi downsamplerSpi)
Adds the givendownsamplerSpito this registry.- Parameters:
downsamplerSpi- the SPI to add- Returns:
true, if theDownsamplerSpicould be successfully added, otherwisefalse
-
addDownsamplerSpi
boolean addDownsamplerSpi(String downsamplerAlias, DownsamplerSpi downsamplerSpi)
Adds the givendownsamplerSpito this registry.- Parameters:
downsamplerSpi- the SPI to add- Returns:
true, if theDownsamplerSpicould be successfully added, otherwisefalse
-
removeDownsamplerSpi
boolean removeDownsamplerSpi(DownsamplerSpi downsamplerSpi)
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
-
-