Class DownsamplerSpiRegistryImpl
java.lang.Object
org.esa.snap.core.gpf.common.resample.DownsamplerSpiRegistryImpl
- All Implemented Interfaces:
DownsamplerSpiRegistry
Created by obarrile on 12/04/2019.
-
Constructor Summary
ConstructorsConstructorDescriptionDownsamplerSpiRegistryImpl(ServiceRegistry<DownsamplerSpi> serviceRegistry) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddDownsamplerSpi(String alias, DownsamplerSpi downsamplerSpi) Adds the givendownsamplerSpito this registry.booleanaddDownsamplerSpi(DownsamplerSpi downsamplerSpi) Adds the givenoperatorSpito this registry.Gets the set of all aliases.getDownsamplerSpi(String alias) Gets a registered Downsampler SPI.Gets theServiceRegistryvoidLoads the SPIs defined inMETA-INF/services.booleanremoveDownsamplerSpi(DownsamplerSpi downsamplerSpi) Removes the givendownsamplerSpithis registry.
-
Constructor Details
-
DownsamplerSpiRegistryImpl
The constructor.- Parameters:
serviceRegistry- The underlying service registry used by this instance.
-
-
Method Details
-
loadDownsamplerSpis
public void loadDownsamplerSpis()Loads the SPIs defined inMETA-INF/services.- Specified by:
loadDownsamplerSpisin interfaceDownsamplerSpiRegistry
-
getDownsamplerSpis
- Specified by:
getDownsamplerSpisin interfaceDownsamplerSpiRegistry- Returns:
- The set of all registered operator SPIs.
-
getServiceRegistry
Gets theServiceRegistry- Specified by:
getServiceRegistryin interfaceDownsamplerSpiRegistry- Returns:
- the
service registry
-
getDownsamplerSpi
Gets a registered Downsampler SPI.- Specified by:
getDownsamplerSpiin interfaceDownsamplerSpiRegistry- Parameters:
alias- A name identifying the Downsampler SPI.- Returns:
- the Downsampler SPI, or
null
-
addDownsamplerSpi
Adds the givenoperatorSpito this registry.- Specified by:
addDownsamplerSpiin interfaceDownsamplerSpiRegistry- Parameters:
downsamplerSpi- the SPI to add- Returns:
true, if theDownsamplerSpicould be successfully added, otherwisefalse
-
addDownsamplerSpi
Adds the givendownsamplerSpito this registry.- Specified by:
addDownsamplerSpiin interfaceDownsamplerSpiRegistry- Parameters:
downsamplerSpi- the SPI to add- Returns:
true, if theDownsamplerSpicould be successfully added, otherwisefalse
-
removeDownsamplerSpi
Removes the givendownsamplerSpithis registry.- Specified by:
removeDownsamplerSpiin interfaceDownsamplerSpiRegistry- Parameters:
downsamplerSpi- the SPI to remove- Returns:
true, if the SPI could be removed, otherwisefalse
-
getAliases
Gets the set of all aliases.- Specified by:
getAliasesin interfaceDownsamplerSpiRegistry- Returns:
- the set of alias names.
-