Class CommunicationEngineFactory
java.lang.Object
com.aquima.interactions.communication.CommunicationEngineFactory
- All Implemented Interfaces:
ICommunicationEngineFactory
Factory class that may be used to create an instance of ICommunicationEngine.
- Since:
- 9.0
- Author:
- Jon van Leuven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(IMetaModel metamodel, IRuleEngine ruleEngine, ICommunicationEngineDS datasource) This method creates a new communication engine.static ICommunicationEngineFactory
Get an instance of ICommunicationEngineFactory.
-
Field Details
-
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
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 interfaceICommunicationEngineFactory
- 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.
-