Class ConditionEvaluatorDispatcher
- java.lang.Object
-
- org.apache.unomi.persistence.elasticsearch.conditions.ConditionEvaluatorDispatcher
-
public class ConditionEvaluatorDispatcher extends Object
Entry point for condition evaluation. Will dispatch to all evaluators.
-
-
Constructor Summary
Constructors Constructor Description ConditionEvaluatorDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEvaluator(String name, ConditionEvaluator evaluator)
boolean
eval(Condition condition, Item item)
boolean
eval(Condition condition, Item item, Map<String,Object> context)
void
removeEvaluator(String name)
void
setMetricsService(MetricsService metricsService)
void
setScriptExecutor(ScriptExecutor scriptExecutor)
-
-
-
Method Detail
-
setMetricsService
public void setMetricsService(MetricsService metricsService)
-
setScriptExecutor
public void setScriptExecutor(ScriptExecutor scriptExecutor)
-
addEvaluator
public void addEvaluator(String name, ConditionEvaluator evaluator)
-
removeEvaluator
public void removeEvaluator(String name)
-
-