Package org.kie.internal.builder.conf
Class EvaluatorOption
java.lang.Object
org.kie.internal.builder.conf.EvaluatorOption
- All Implemented Interfaces:
Serializable,MultiValueOption,Option,KnowledgeBuilderOption,MultiValueKieBuilderOption,MultiValueRuleBuilderOption
A class for the evaluators configuration.
Drools supports custom evaluators. After implementing an evaluator
use this option class to register it to the knowledge builder.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic OptionKey<EvaluatorOption>static final StringThe prefix for the property name for evaluatorsFields inherited from interface org.kie.internal.builder.conf.MultiValueRuleBuilderOption
TYPE -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EvaluatorOptionget(String key, EvaluatorDefinition evaluator) This is a factory method for this EvaluatorOption configuration.Returns the accumulate function instancegetName()Returns the name of the dialect configured as defaultinthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kie.internal.builder.conf.MultiValueRuleBuilderOption
typeMethods inherited from interface org.kie.api.conf.Option
propertyName
-
Field Details
-
PROPERTY_NAME
The prefix for the property name for evaluators- See Also:
-
KEY
-
-
Method Details
-
get
This is a factory method for this EvaluatorOption configuration. The factory method is a best practice for the case where the actual object construction is changed in the future.- Parameters:
key- the key of the evaluator to be configuredevaluator- the evaluator definition- Returns:
- the actual type safe default dialect configuration.
-
getPropertyName
- Specified by:
getPropertyNamein interfaceOption
-
getName
Returns the name of the dialect configured as default- Returns:
-
getEvaluatorDefinition
Returns the accumulate function instance- Returns:
-
toString
-
hashCode
public int hashCode() -
equals
-