Package com.aquima.interactions.rule
Class RuleEngineFactory
java.lang.Object
com.aquima.interactions.rule.RuleEngineFactory
- All Implemented Interfaces:
IRuleEngineFactory
Factory class that may be used to create an instance of IRuleEngine.
- Since:
- 5.0
- Author:
- Jon van Leuven
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(IProject project, IMetaModel model, IRuleFactory factory, IValidatorFactory validators, IConnectionManager connectionManager, IRuleEngineDS datasource) Create an instance of IRuleEngine using a custom parser and a custom validator factory.static IRuleEngineFactory
Get an instance of IRuleEngineFactory.
-
Constructor Details
-
RuleEngineFactory
public RuleEngineFactory()
-
-
Method Details
-
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) throws InitializationException Description copied from interface:IRuleEngineFactory
Create an instance of IRuleEngine using a custom parser and a custom validator factory.- Specified by:
create
in interfaceIRuleEngineFactory
- 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.
- Throws:
InitializationException
- This exception is thrown when the rule engine could not be created due to a fatal error.
-