Class AbstractSubResourceWebService<T>
- java.lang.Object
-
- de.aristaflow.ilm.ws.base.service.AbstractSubResourceWebService<T>
-
- Type Parameters:
T
- The type of the (sub) resource web service which is the (interface of the) corresponding (sub) service.
- Direct Known Subclasses:
AbstractRootResourceWebService
,ActivityExecutionControlWebService
,ActivityStartingWebService
,ActivityTerminationWebService
,AddDataTransformatorRemoteIteratorWebService
,ClientAdministrationWebService
,DelegationManagerWebService
,ExecutionControlManagerWebService
,GlobalSecurityManagerWebService
,GlobalUserConfigurationWebService
,IncWorklistsWebService
,IncWorklistUpdateWebService
,InstanceControlWebService
,InstanceManagerWebService
,ModelChangeOperationsWebService
,ModelExplorerWebService
,PolicyResolutionWebService
,RemoteActivityStartingWebService
,RemoteProgressMonitorWebService
,RemoteRuntimeEnvironmentWebService
,ResModelChangeOperationsWebService
,ResModelExplorerWebService
,ResModelExpressionEvaluationWebService
,SynchronousActivityStartingWebService
,TemplateManagerWebService
,WorklistAdministrationWebService
,WorklistUpdateManagerWebService
public class AbstractSubResourceWebService<T> extends Object
An abstract sub resource web service resemblesAbstractSubService
, that is, an abstract implementation providing some basic means for a web service for a (sub) resource. These usually correspond to sub services which are part of a central service, e. g.GlobalSecurityManager
forOrgModelManager
.Sub resource web services are usually created by other web services. The specific implementation for the corresponding web service framework, e. g. REST or SOAP, retrieves the sub resources from the web service and wraps them but does not create instances of this class.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSubResourceWebService(T service, AbstractSubResourceWebService<?> parent)
Creates a new (sub) resource web service for the designated (sub) service using a log service, session factory provider and service URIs from the designated parent sub resource web service.protected
AbstractSubResourceWebService(T service, ServiceMetaData serviceMetaData)
Creates a new (sub) resource web service for the designated (sub) service using the designated service meta data and creating a class-specific logger from it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Logger
getLogger()
Gets the logger to be used by the (sub) resource web service.LogService
getLogService()
Gets the log service for creating loggers for child sub resource web services.protected T
getService()
Gets the wrapped Java API (sub) service instance.ServiceMetaData
getServiceMetaData()
Gets service meta data for creating sub resources.protected URI[]
getServiceUris()
Gets the service URIs of the corresponding web service communication service.protected SessionFactory
getSessionFactory()
Gets the session factory for unmarshalling session tokens.void
shutdown()
Shuts down this sub resource web service.
-
-
-
Constructor Detail
-
AbstractSubResourceWebService
protected AbstractSubResourceWebService(T service, AbstractSubResourceWebService<?> parent)
Creates a new (sub) resource web service for the designated (sub) service using a log service, session factory provider and service URIs from the designated parent sub resource web service.- Parameters:
service
- The (sub) service wrapped by this (sub) resource web service.parent
- The parent (sub) resource of this sub resource web service.
-
AbstractSubResourceWebService
protected AbstractSubResourceWebService(T service, ServiceMetaData serviceMetaData)
Creates a new (sub) resource web service for the designated (sub) service using the designated service meta data and creating a class-specific logger from it.- Parameters:
service
- The (sub) service wrapped by this (sub) resource web service.serviceMetaData
- The service meta data for creating sub resources.
-
-
Method Detail
-
getService
protected T getService()
Gets the wrapped Java API (sub) service instance.- Returns:
- The wrapped Java API (sub) service instance.
-
getLogService
public LogService getLogService()
Gets the log service for creating loggers for child sub resource web services.- Returns:
- The log service for creating loggers for child sub resource web services.
-
getLogger
protected Logger getLogger()
Gets the logger to be used by the (sub) resource web service.- Returns:
- The logger to be used by the (sub) resource web service.
-
getSessionFactory
protected SessionFactory getSessionFactory()
Gets the session factory for unmarshalling session tokens.- Returns:
- The session factory for unmarshalling session tokens.
-
getServiceUris
protected URI[] getServiceUris()
Gets the service URIs of the corresponding web service communication service. This allows for creating session tokens with client session factories.- Returns:
- The service URIs of the corresponding web service communication service.
-
getServiceMetaData
public ServiceMetaData getServiceMetaData()
Gets service meta data for creating sub resources.- Returns:
- service meta data for creating sub resources.
-
shutdown
public void shutdown()
Shuts down this sub resource web service. This default implementation does nothing.
-
-