Class CommunicationEngineFactory

java.lang.Object
com.aquima.interactions.communication.CommunicationEngineFactory
All Implemented Interfaces:
ICommunicationEngineFactory

public class CommunicationEngineFactory extends Object implements ICommunicationEngineFactory
Factory class that may be used to create an instance of ICommunicationEngine.
Since:
9.0
Author:
Jon van Leuven
  • Field Details

    • PROPERTY

      public static final String PROPERTY
      This define denotates the key that is used to locate a communication-engine factory implementation.
      See Also:
  • Constructor Details

    • CommunicationEngineFactory

      public CommunicationEngineFactory()
  • Method Details

    • getInstance

      public static ICommunicationEngineFactory getInstance()
      Get an instance of ICommunicationEngineFactory. If there is an implementation register via the ClassFactory (with key 'communicationengine-factory'), an instance of this class is returned. Note: keep in mind that the instance returned is kept in a static member, so once this class is loaded always the same instance is returned.
      Returns:
      ICommunicationEngineFactory implementation
    • create

      public ICommunicationEngine create(IMetaModel metamodel, IRuleEngine ruleEngine, ICommunicationEngineDS datasource)
      Description copied from interface: ICommunicationEngineFactory
      This method creates a new communication engine.
      Specified by:
      create in interface ICommunicationEngineFactory
      Parameters:
      metamodel - The meta model used to initialize the communication engine, may not be null.
      ruleEngine - The rule engine used to initialize the communication engine, may not be null.
      datasource - The data source providing the communication engine information, may not be null
      Returns:
      Communication engine implementation for the specified data source.