*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.session
Class SessionServiceFactory
java.lang.Object
com.sas.services.AbstractServiceFactory
com.sas.services.session.SessionServiceFactory
- All Implemented Interfaces:
ServiceFactoryInterface
@SASScope("ALL")
@BinaryCompatibilityOnly
public class SessionServiceFactory
extends AbstractServiceFactory
Factory used to manufacture a session service.
The manufactured service will implement the following interfaces:
The service created by this factory depends upon another service to provide the following capability:
- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final SessionServiceInterfacecreateService(ServiceConfigurationInterface serviceConfiguration, DiscoveryServiceInterface discoveryService) Gets a Session service initialized with the specified configuration.final RemoteServiceInterfacegetService(ServiceConfigurationInterface serviceConfiguration, DiscoveryServiceInterface discoveryService) Gets a Session service initialized with the specified configuration.Methods inherited from class com.sas.services.AbstractServiceFactory
getService, getServiceProfile, isSingletonFactoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SessionServiceFactory
public SessionServiceFactory()Constructs a default instance.
-
-
Method Details
-
getService
public final RemoteServiceInterface getService(ServiceConfigurationInterface serviceConfiguration, DiscoveryServiceInterface discoveryService) throws ServiceException Gets a Session service initialized with the specified configuration.- Specified by:
getServicein interfaceServiceFactoryInterface- Specified by:
getServicein classAbstractServiceFactory- Parameters:
serviceConfiguration- Service configurationdiscoveryService- Discovery service to which the service will be registered.- Returns:
- A service that implements
SessionServiceInterface. - Throws:
ServiceException- if unable to create a Session service.- See Also:
-
createService
public static final SessionServiceInterface createService(ServiceConfigurationInterface serviceConfiguration, DiscoveryServiceInterface discoveryService) throws ServiceException Gets a Session service initialized with the specified configuration.- Parameters:
serviceConfiguration- Service configurationdiscoveryService- Discovery service to which the service will be registered.- Returns:
- A service that implements
SessionServiceInterface. - Throws:
ServiceException- if unable to create a Session service.
-