Package org.esa.snap.core.gpf
Interface OperatorSpiRegistry
-
public interface OperatorSpiRegistry
A registry for operator SPI instances.- Since:
- 4.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
addOperatorSpi(String operatorName, OperatorSpi operatorSpi)
Adds the givenoperatorSpi
to this registry.boolean
addOperatorSpi(OperatorSpi operatorSpi)
Adds the givenoperatorSpi
to this registry.Set
getAliases()
Gets a set of all aliasesOperatorSpi
getOperatorSpi(String operatorName)
Gets a registered operator SPI.Set<OperatorSpi>
getOperatorSpis()
ServiceRegistry<OperatorSpi>
getServiceRegistry()
Gets theServiceRegistry
void
loadOperatorSpis()
Loads the SPIs defined inMETA-INF/services
.boolean
removeOperatorSpi(OperatorSpi operatorSpi)
Removes the givenoperatorSpi
this registry.
-
-
-
Method Detail
-
loadOperatorSpis
void loadOperatorSpis()
Loads the SPIs defined inMETA-INF/services
.
-
getOperatorSpis
Set<OperatorSpi> getOperatorSpis()
- Returns:
- The set of all registered operator SPIs.
- Since:
- BEAM 5
-
getServiceRegistry
ServiceRegistry<OperatorSpi> getServiceRegistry()
Gets theServiceRegistry
- Returns:
- the
service registry
-
getOperatorSpi
OperatorSpi getOperatorSpi(String operatorName)
Gets a registered operator SPI. The givenoperatorName
can be either the fully qualified class name of theOperatorSpi
or an alias name.- Parameters:
operatorName
- a name identifying the operator SPI.- Returns:
- the operator SPI, or
null
-
addOperatorSpi
boolean addOperatorSpi(OperatorSpi operatorSpi)
Adds the givenoperatorSpi
to this registry.- Parameters:
operatorSpi
- the SPI to add- Returns:
true
, if theOperatorSpi
could be successfully added, otherwisefalse
-
addOperatorSpi
boolean addOperatorSpi(String operatorName, OperatorSpi operatorSpi)
Adds the givenoperatorSpi
to this registry.- Parameters:
operatorName
- an (alias) name used as key for the registration.operatorSpi
- the SPI to add- Returns:
true
, if theOperatorSpi
could be successfully added, otherwisefalse
- Since:
- BEAM 5
-
removeOperatorSpi
boolean removeOperatorSpi(OperatorSpi operatorSpi)
Removes the givenoperatorSpi
this registry.- Parameters:
operatorSpi
- 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
-
-