public abstract class AbstractServiceManager extends Object implements ServiceManager
ServiceManager implementation which stores the registered
ServiceFactory objects into a Map, using the name as the key.| Constructor and Description |
|---|
AbstractServiceManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceFactory(ServiceFactory serviceFactory)
Adds a new
ServiceFactory to the registry. |
Service |
createService(DynObject serviceParameters)
Creates a new
Service. |
DynObject |
createServiceParameters(String serviceName)
Creates the parameters for the
Service created by the factory
with the given name. |
protected String |
getName() |
protected abstract String |
getRegistryDescription() |
protected abstract String |
getRegistryKey() |
List |
getServiceFactories() |
public void addServiceFactory(ServiceFactory serviceFactory)
ServiceManagerServiceFactory to the registry.addServiceFactory in interface ServiceManagerserviceFactory - to addprotected String getName()
protected abstract String getRegistryKey()
protected abstract String getRegistryDescription()
public Service createService(DynObject serviceParameters) throws ServiceException
ServiceManagerService.createService in interface ServiceManagerserviceParameters - for the ServiceServiceServiceException - if the parameters are not valid or there is an error creating
the Providerpublic DynObject createServiceParameters(String serviceName) throws ServiceException
ServiceManagerService created by the factory
with the given name.createServiceParameters in interface ServiceManagerserviceName - name of the factory to create the ServiceServiceExceptionpublic List getServiceFactories()