public abstract class AbstractService extends Object implements Service
Service base parent implementation, delegating in the child classes
the retrieval of the ProviderManager.| Constructor and Description |
|---|
AbstractService()
Empty constructor to be used only for persistence purposes.
|
AbstractService(DynObject serviceParameters)
Creates a new
AbstractService. |
| Modifier and Type | Method and Description |
|---|---|
protected Provider |
getProvider()
Returns the provider related to this service.
|
protected abstract ProviderManager |
getProviderManager()
Returns the reference to the
ProviderManager. |
protected ProviderServices |
getProviderServices()
Returns the provider services to be used by the provider of this service.
|
DynObject |
getServiceParameters()
Returns the service parameters this services was created with
|
protected void |
init(DynObject serviceParameters,
ProviderServices providerServices)
Initialices the service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetManagerpublic AbstractService()
public AbstractService(DynObject serviceParameters) throws ServiceException
AbstractService.serviceParameters - the parameters of the current serviceServiceException - if there is an error with the parameterspublic DynObject getServiceParameters()
protected void init(DynObject serviceParameters, ProviderServices providerServices) throws ServiceException
serviceParameters - the service parametersproviderServices - the provider servicesServiceException - thrown while creating the providerprotected Provider getProvider()
protected ProviderServices getProviderServices()
protected abstract ProviderManager getProviderManager()
ProviderManager.