public class UpsamplerSpiRegistryImpl extends Object implements UpsamplerSpiRegistry
Constructor and Description |
---|
UpsamplerSpiRegistryImpl(ServiceRegistry<UpsamplerSpi> serviceRegistry)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addUpsamplerSpi(String alias,
UpsamplerSpi upsamplerSpi)
Adds the given
upsamplerSpi to this registry. |
boolean |
addUpsamplerSpi(UpsamplerSpi upsamplerSpi)
Adds the given
operatorSpi to this registry. |
Set<String> |
getAliases()
Gets the set of all aliases.
|
ServiceRegistry<UpsamplerSpi> |
getServiceRegistry()
Gets the
ServiceRegistry |
UpsamplerSpi |
getUpsamplerSpi(String alias)
Gets a registered upsampler SPI.
|
Set<UpsamplerSpi> |
getUpsamplerSpis() |
void |
loadUpsamplerSpis()
Loads the SPIs defined in
META-INF/services . |
boolean |
removeUpsamplerSpi(UpsamplerSpi upsamplerSpi)
Removes the given
upsamplerSpi this registry. |
public UpsamplerSpiRegistryImpl(ServiceRegistry<UpsamplerSpi> serviceRegistry)
serviceRegistry
- The underlying service registry used by this instance.public void loadUpsamplerSpis()
META-INF/services
.loadUpsamplerSpis
in interface UpsamplerSpiRegistry
public Set<UpsamplerSpi> getUpsamplerSpis()
getUpsamplerSpis
in interface UpsamplerSpiRegistry
public ServiceRegistry<UpsamplerSpi> getServiceRegistry()
ServiceRegistry
getServiceRegistry
in interface UpsamplerSpiRegistry
service registry
public UpsamplerSpi getUpsamplerSpi(String alias)
getUpsamplerSpi
in interface UpsamplerSpiRegistry
alias
- A name identifying the upsampler SPI.null
public boolean addUpsamplerSpi(UpsamplerSpi upsamplerSpi)
operatorSpi
to this registry.addUpsamplerSpi
in interface UpsamplerSpiRegistry
upsamplerSpi
- the SPI to addtrue
, if the UpsamplerSpi
could be successfully added, otherwise false
public boolean addUpsamplerSpi(String alias, UpsamplerSpi upsamplerSpi)
upsamplerSpi
to this registry.addUpsamplerSpi
in interface UpsamplerSpiRegistry
(alias)
- name used as key for the registration.upsamplerSpi
- the SPI to addtrue
, if the UpsamplerSpi
could be successfully added, otherwise false
public boolean removeUpsamplerSpi(UpsamplerSpi upsamplerSpi)
upsamplerSpi
this registry.removeUpsamplerSpi
in interface UpsamplerSpiRegistry
upsamplerSpi
- the SPI to removetrue
, if the SPI could be removed, otherwise false
public Set<String> getAliases()
getAliases
in interface UpsamplerSpiRegistry
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.