Class ServiceCallVisitor
java.lang.Object
com.aquima.interactions.portal.model.def.ServiceCallVisitor
- All Implemented Interfaces:
IServiceCallVisitor
The service call visitor that is used during initialization to add all service calls that are available through the
data source.
- Since:
- 6.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServiceCallVisitor
(IParserFactory parserFactory, IServiceFactory factory, IProject project, IModule module, Map<String, IServiceCallDefinition> result) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addServiceCall
(IServiceCallDS datasource) This method should be invoked by the data-source implementation to notify the portal engine of the existence of a service call.static Map
<String, IServiceCallDefinition> process
(IModuleDS datasource, IProject project, IModule module, IParserFactory parserFactory, IServiceFactory factory) This method will initialize a map containing the service call definitions.
-
Constructor Details
-
ServiceCallVisitor
protected ServiceCallVisitor(IParserFactory parserFactory, IServiceFactory factory, IProject project, IModule module, Map<String, IServiceCallDefinition> result)
-
-
Method Details
-
process
public static Map<String,IServiceCallDefinition> process(IModuleDS datasource, IProject project, IModule module, IParserFactory parserFactory, IServiceFactory factory) This method will initialize a map containing the service call definitions.- Parameters:
datasource
- The data source that should be used to read the service calls from.project
- Project containing the service definitions.module
- The module whose services are being addedparserFactory
- Factory that may be used to create an expression parser.factory
- Factory that is used to check if an implementation is available for the service.- Returns:
- Map containing the service call definitions.
- Throws:
InitializationException
- This exception is thrown when the service calls could not be initialized.
-
addServiceCall
Description copied from interface:IServiceCallVisitor
This method should be invoked by the data-source implementation to notify the portal engine of the existence of a service call. The method should be invoked for each service call.- Specified by:
addServiceCall
in interfaceIServiceCallVisitor
- Parameters:
datasource
- The service call datasource.
-