org.drools.base
Class EvaluatorFactory
java.lang.Object
org.drools.base.EvaluatorFactory
- public class EvaluatorFactory
- extends java.lang.Object
This is a factory to generate evaluators for all types and operations that can be used
in constraints. Uses the helper classes in the evaluators sub package.
eg Person(object opr object)
Where valid type's are are defined as contants in Evaluator.
Adding support for other types or operators is quite easy, just remmeber to add it to the getEvaluator method(s)
below, and also to the unit tests.
TODO: Should this be made dynamic, such that users can add their own types, a-la hibernate?
-

| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static EvaluatorFactory getInstance()
getEvaluator
public static Evaluator getEvaluator(int type,
java.lang.String operator)
getEvaluator
public static Evaluator getEvaluator(int type,
int operator)