Class SpelRuleEvaluationService

java.lang.Object
com.broadleafcommerce.rulesengine.expression.service.SpelRuleEvaluationService
All Implemented Interfaces:
RuleEvaluationService

public class SpelRuleEvaluationService extends Object implements RuleEvaluationService

Default implementation of RuleEvaluationService that takes the configured ExpressionParser to parse SpEL Expressions with caching for expressions and EvaluationContexts. Combined with CachingStdEvaluationContextFactory, supports SpEL expression evaluation with concrete objects or maps.

Expressions are cached based on the literal expression as the key while EvaluationContexts use the rootObject as the key.

Author:
Nathan Moore (nathanmoore).
See Also: