Class ServiceFactoryTemplate
java.lang.Object
com.aquima.interactions.test.templates.resource.ServiceFactoryTemplate
Template that can be used to create a service factory.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addService
(String serviceTypeName, com.aquima.interactions.portal.IService serviceImpl) This method may be used to add a custom service.protected com.aquima.interactions.portal.IService
getService
(String serviceName) com.aquima.interactions.portal.IServiceFactory
This method converts the template to a service factory implementation.
-
Constructor Details
-
ServiceFactoryTemplate
protected ServiceFactoryTemplate()
-
-
Method Details
-
addService
This method may be used to add a custom service.- Parameters:
serviceTypeName
- The type name of the service.serviceImpl
- The service implementation.
-
getService
-
toFactory
public com.aquima.interactions.portal.IServiceFactory toFactory()This method converts the template to a service factory implementation.- Returns:
- Service factory implementation based on the template.
-