Class RuleEngineFactory

java.lang.Object
com.aquima.interactions.rule.RuleEngineFactory
All Implemented Interfaces:
IRuleEngineFactory

public class RuleEngineFactory extends Object implements IRuleEngineFactory
Factory class that may be used to create an instance of IRuleEngine.
Since:
5.0
Author:
Jon van Leuven
  • Constructor Details

    • RuleEngineFactory

      public RuleEngineFactory()
  • Method Details

    • getInstance

      public static IRuleEngineFactory getInstance()
      Get an instance of IRuleEngineFactory. If there is an implementation register via the ClassFactory (with key 'ruleengine-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:
      IRuleEngineFactory implementation.
    • create

      public IRuleEngine create(IProject project, IMetaModel model, IRuleFactory factory, IValidatorFactory validators, IConnectionManager connectionManager, IRuleEngineDS datasource)
      Description copied from interface: IRuleEngineFactory
      Create an instance of IRuleEngine using a custom parser and a custom validator factory.
      Specified by:
      create in interface IRuleEngineFactory
      Parameters:
      project - The project containing various global definitions.
      model - The meta model containing the entity and attribute definitions.
      factory - Factory implementation capable of providing rule implementations by name.
      validators - Factory implementation capable of providing validator implementations.
      connectionManager - The connection manager that can be used to initialize data rules.
      datasource - The data source providing the rule definitions for the rule engine.
      Returns:
      Rule engine implementation for the specified data source.