Class LinkedServiceFactory
java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedServiceFactory
- All Implemented Interfaces:
IServiceFactory
Service factory implementation that combines two service factories.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionstatic IServiceFactory
createFor
(IServiceFactory factory, IServiceFactory defaultFactory) This method returns a service factory implementation that combines both the service factories that are passed to this method.getService
(ApplicationID application, String serviceTypeName) This method should provide an implementation of the service interface for the specified name and application id.
-
Method Details
-
createFor
This method returns a service factory implementation that combines both the service factories that are passed to this method.- Parameters:
factory
- The service factory that should be used first when requesting a service (optional).defaultFactory
- The service factory that should be used when the first did not supply a service implementation (mandatory).- Returns:
- a service factory implementation that combines both the service factories that are passed to this method.
-
getService
Description copied from interface:IServiceFactory
This method should provide an implementation of the service interface for the specified name and application id. The name passed to this method will be the service-type name as specified in the studio. When service could not be created the factory should throw an exception, when the service could not be found a null pointer should be returned.- Specified by:
getService
in interfaceIServiceFactory
- Parameters:
application
- The ID of the application module for which a service is requested.serviceTypeName
- the service-type name- Returns:
- the service interface which should be returned, null when not available.
-