org.esa.beam.framework.gpf
Interface OperatorSpiRegistry

All Known Implementing Classes:
OperatorSpiRegistryImpl

public interface OperatorSpiRegistry

A registry for operator SPI instances.

Since:
4.1
Author:
Norman Fomferra, Marco Zühlke

Method Summary
 boolean addOperatorSpi(OperatorSpi operatorSpi)
          Adds the given operatorSpi to this registry.
 OperatorSpi getOperatorSpi(String operatorName)
          Gets a registrered operator SPI.
 com.bc.ceres.core.ServiceRegistry<OperatorSpi> getServiceRegistry()
          Gets the ServiceRegistry
 void loadOperatorSpis()
          Loads the SPI's defined in META-INF/services.
 boolean removeOperatorSpi(OperatorSpi operatorSpi)
          Removes the given operatorSpi this registry.
 void setAlias(String aliasName, String spiClassName)
          Sets an alias for the given SPI class name.
 

Method Detail

loadOperatorSpis

void loadOperatorSpis()
Loads the SPI's defined in META-INF/services.


getServiceRegistry

com.bc.ceres.core.ServiceRegistry<OperatorSpi> getServiceRegistry()
Gets the ServiceRegistry

Returns:
the service registry

getOperatorSpi

OperatorSpi getOperatorSpi(String operatorName)
Gets a registrered operator SPI. The given operatorName can be either the fully qualified class name of the OperatorSpi 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 given operatorSpi to this registry.

Parameters:
operatorSpi - the SPI to add
Returns:
true, if the OperatorSpi could be succesfully added, otherwise false

removeOperatorSpi

boolean removeOperatorSpi(OperatorSpi operatorSpi)
Removes the given operatorSpi this registry.

Parameters:
operatorSpi - the SPI to remove
Returns:
true, if the SPI could be removed, otherwise false

setAlias

void setAlias(String aliasName,
              String spiClassName)
Sets an alias for the given SPI class name.

Parameters:
aliasName - the alias
spiClassName - the name of the SPI class


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.