public abstract class AbstractServiceFactory extends Object implements ServiceFactory
ServiceFactory implementation.| Constructor and Description |
|---|
AbstractServiceFactory()
Creates a new
AbstractServiceFactory. |
| Modifier and Type | Method and Description |
|---|---|
Service |
create(DynObject parameters,
ServiceManager serviceManager)
Creates a new
Service. |
DynObject |
createParameters()
Creates the parameters for the
Service created by this factory. |
protected abstract DynClass |
createParametersDynClass()
|
protected abstract Service |
doCreate(DynObject parameters,
ServiceManager serviceManager)
Creates a new
Service with the given parameters and
ServiceManager. |
String |
getName()
Returns the name of the services created by this factory.
|
protected void |
setParametersDynClass(DynClass parametersDynClass)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializepublic AbstractServiceFactory()
AbstractServiceFactory.public String getName()
ServiceFactorygetName in interface ServiceFactorypublic DynObject createParameters()
ServiceFactoryService created by this factory.createParameters in interface ServiceFactorypublic final Service create(DynObject parameters, ServiceManager serviceManager) throws ServiceException
ServiceFactoryService.create in interface ServiceFactoryparameters - for the ServiceserviceManager - to be used by the ServiceServiceServiceException - if the parameters are not valid or there is an error creating
the Serviceprotected void setParametersDynClass(DynClass parametersDynClass)
parametersDynClass - the parameters DynClassprotected abstract Service doCreate(DynObject parameters, ServiceManager serviceManager) throws ServiceException
Service with the given parameters and
ServiceManager.parameters - to create the ServiceserviceManager - to be used by the ServiceServiceException - if the parameters are not valid or there is an error creating
the Service