Package org.kie.internal.builder.conf
Class EvaluatorOption
java.lang.Object
org.kie.internal.builder.conf.EvaluatorOption
- All Implemented Interfaces:
Serializable,org.kie.api.conf.MultiValueOption,org.kie.api.conf.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 org.kie.api.conf.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 EvaluatorOptionThis is a factory method for this EvaluatorOption configuration.org.kie.api.runtime.rule.EvaluatorDefinitionReturns 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
public static EvaluatorOption get(String key, org.kie.api.runtime.rule.EvaluatorDefinition evaluator) 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 interfaceorg.kie.api.conf.Option
-
getName
Returns the name of the dialect configured as default- Returns:
-
getEvaluatorDefinition
public org.kie.api.runtime.rule.EvaluatorDefinition getEvaluatorDefinition()Returns the accumulate function instance- Returns:
-
toString
-
hashCode
public int hashCode() -
equals
-