Class UpsamplerSpiRegistryImpl
java.lang.Object
org.esa.snap.core.gpf.common.resample.UpsamplerSpiRegistryImpl
- All Implemented Interfaces:
UpsamplerSpiRegistry
Created by obarrile on 11/04/2019.
-
Constructor Summary
ConstructorsConstructorDescriptionUpsamplerSpiRegistryImpl(ServiceRegistry<UpsamplerSpi> serviceRegistry) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddUpsamplerSpi(String alias, UpsamplerSpi upsamplerSpi) Adds the givenupsamplerSpito this registry.booleanaddUpsamplerSpi(UpsamplerSpi upsamplerSpi) Adds the givenoperatorSpito this registry.Gets the set of all aliases.Gets theServiceRegistrygetUpsamplerSpi(String alias) Gets a registered upsampler SPI.voidLoads the SPIs defined inMETA-INF/services.booleanremoveUpsamplerSpi(UpsamplerSpi upsamplerSpi) Removes the givenupsamplerSpithis registry.
-
Constructor Details
-
UpsamplerSpiRegistryImpl
The constructor.- Parameters:
serviceRegistry- The underlying service registry used by this instance.
-
-
Method Details
-
loadUpsamplerSpis
public void loadUpsamplerSpis()Loads the SPIs defined inMETA-INF/services.- Specified by:
loadUpsamplerSpisin interfaceUpsamplerSpiRegistry
-
getUpsamplerSpis
- Specified by:
getUpsamplerSpisin interfaceUpsamplerSpiRegistry- Returns:
- The set of all registered operator SPIs.
-
getServiceRegistry
Gets theServiceRegistry- Specified by:
getServiceRegistryin interfaceUpsamplerSpiRegistry- Returns:
- the
service registry
-
getUpsamplerSpi
Gets a registered upsampler SPI.- Specified by:
getUpsamplerSpiin interfaceUpsamplerSpiRegistry- Parameters:
alias- A name identifying the upsampler SPI.- Returns:
- the upsampler SPI, or
null
-
addUpsamplerSpi
Adds the givenoperatorSpito this registry.- Specified by:
addUpsamplerSpiin interfaceUpsamplerSpiRegistry- Parameters:
upsamplerSpi- the SPI to add- Returns:
true, if theUpsamplerSpicould be successfully added, otherwisefalse
-
addUpsamplerSpi
Adds the givenupsamplerSpito this registry.- Specified by:
addUpsamplerSpiin interfaceUpsamplerSpiRegistry- Parameters:
upsamplerSpi- the SPI to add- Returns:
true, if theUpsamplerSpicould be successfully added, otherwisefalse
-
removeUpsamplerSpi
Removes the givenupsamplerSpithis registry.- Specified by:
removeUpsamplerSpiin interfaceUpsamplerSpiRegistry- Parameters:
upsamplerSpi- the SPI to remove- Returns:
true, if the SPI could be removed, otherwisefalse
-
getAliases
Gets the set of all aliases.- Specified by:
getAliasesin interfaceUpsamplerSpiRegistry- Returns:
- the set of alias names.
-