Class ServiceCallVisitor

java.lang.Object
com.aquima.interactions.portal.model.def.ServiceCallVisitor
All Implemented Interfaces:
IServiceCallVisitor

public class ServiceCallVisitor extends Object implements 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 Details

  • 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 added
      parserFactory - 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

      public void addServiceCall(IServiceCallDS datasource)
      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 interface IServiceCallVisitor
      Parameters:
      datasource - The service call datasource.