public class OperatorSpiRegistryImpl extends Object implements OperatorSpiRegistry
Constructor and Description |
---|
OperatorSpiRegistryImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addOperatorSpi(OperatorSpi operatorSpi)
Adds the given
operatorSpi to this registry. |
boolean |
addOperatorSpi(String operatorName,
OperatorSpi operatorSpi)
Adds the given
operatorSpi to this registry. |
OperatorSpi |
getOperatorSpi(String operatorName)
Gets a registered operator SPI.
|
Set<OperatorSpi> |
getOperatorSpis() |
com.bc.ceres.core.ServiceRegistry<OperatorSpi> |
getServiceRegistry()
Gets the
ServiceRegistry |
void |
loadOperatorSpis()
Loads the SPIs defined in
META-INF/services . |
boolean |
removeOperatorSpi(OperatorSpi operatorSpi)
Removes the given
operatorSpi this registry. |
void |
setAlias(String aliasName,
String spiClassName)
Deprecated.
since BEAM 5, used internally only
|
public void loadOperatorSpis()
META-INF/services
.loadOperatorSpis
in interface OperatorSpiRegistry
public Set<OperatorSpi> getOperatorSpis()
getOperatorSpis
in interface OperatorSpiRegistry
public com.bc.ceres.core.ServiceRegistry<OperatorSpi> getServiceRegistry()
ServiceRegistry
getServiceRegistry
in interface OperatorSpiRegistry
service registry
public OperatorSpi getOperatorSpi(String operatorName)
operatorName
can be
either the fully qualified class name of the OperatorSpi
or an alias name.getOperatorSpi
in interface OperatorSpiRegistry
operatorName
- A name identifying the operator SPI.null
public boolean addOperatorSpi(OperatorSpi operatorSpi)
operatorSpi
to this registry.addOperatorSpi
in interface OperatorSpiRegistry
operatorSpi
- the SPI to addtrue
, if the OperatorSpi
could be succesfully added, otherwise false
public boolean addOperatorSpi(String operatorName, OperatorSpi operatorSpi)
operatorSpi
to this registry.addOperatorSpi
in interface OperatorSpiRegistry
operatorName
- an (alias) name used as key for the registration.operatorSpi
- the SPI to addtrue
, if the OperatorSpi
could be successfully added, otherwise false
public boolean removeOperatorSpi(OperatorSpi operatorSpi)
operatorSpi
this registry.removeOperatorSpi
in interface OperatorSpiRegistry
operatorSpi
- the SPI to removetrue
, if the SPI could be removed, otherwise false
@Deprecated public void setAlias(String aliasName, String spiClassName)
setAlias
in interface OperatorSpiRegistry
aliasName
- the aliasspiClassName
- the name of the SPI classCopyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.