Package org.esa.snap.core.gpf
Interface OperatorSpiRegistry
public interface OperatorSpiRegistry
A registry for operator SPI instances.
- Since:
- 4.1
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddOperatorSpi(String operatorName, OperatorSpi operatorSpi) Adds the givenoperatorSpito this registry.booleanaddOperatorSpi(OperatorSpi operatorSpi) Adds the givenoperatorSpito this registry.Gets a set of all aliasesgetOperatorSpi(String operatorName) Gets a registered operator SPI.Gets theServiceRegistryvoidLoads the SPIs defined inMETA-INF/services.booleanremoveOperatorSpi(OperatorSpi operatorSpi) Removes the givenoperatorSpithis registry.
-
Method Details
-
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
Gets a registered operator SPI. The givenoperatorNamecan be either the fully qualified class name of theOperatorSpior an alias name.- Parameters:
operatorName- a name identifying the operator SPI.- Returns:
- the operator SPI, or
null
-
addOperatorSpi
Adds the givenoperatorSpito this registry.- Parameters:
operatorSpi- the SPI to add- Returns:
true, if theOperatorSpicould be successfully added, otherwisefalse
-
addOperatorSpi
Adds the givenoperatorSpito this registry.- Parameters:
operatorName- an (alias) name used as key for the registration.operatorSpi- the SPI to add- Returns:
true, if theOperatorSpicould be successfully added, otherwisefalse- Since:
- BEAM 5
-
removeOperatorSpi
Removes the givenoperatorSpithis 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
-