|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.gpf.internal.OperatorSpiRegistryImpl
public class OperatorSpiRegistryImpl
A registry for operator SPI instances.
| Constructor Summary | |
|---|---|
OperatorSpiRegistryImpl()
The provate singleton constructor. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperatorSpiRegistryImpl()
| Method Detail |
|---|
public void loadOperatorSpis()
META-INF/services.
loadOperatorSpis in interface OperatorSpiRegistrypublic com.bc.ceres.core.ServiceRegistry<OperatorSpi> getServiceRegistry()
ServiceRegistry
getServiceRegistry in interface OperatorSpiRegistryservice registrypublic OperatorSpi getOperatorSpi(String operatorName)
operatorName can be
either the fully qualified class name of the OperatorSpi
or an alias name.
getOperatorSpi in interface OperatorSpiRegistryoperatorName - A name identifying the operator SPI.
nullpublic boolean addOperatorSpi(OperatorSpi operatorSpi)
operatorSpi to this registry.
addOperatorSpi in interface OperatorSpiRegistryoperatorSpi - the SPI to add
true, if the OperatorSpi could be succesfully added, otherwise falsepublic boolean removeOperatorSpi(OperatorSpi operatorSpi)
operatorSpi this registry.
removeOperatorSpi in interface OperatorSpiRegistryoperatorSpi - the SPI to remove
true, if the SPI could be removed, otherwise false
public void setAlias(String aliasName,
String spiClassName)
setAlias in interface OperatorSpiRegistryaliasName - the aliasspiClassName - the name of the SPI class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||