public class SpELCondition extends java.lang.Object implements Condition
Condition that uses
SpEL
to evaluate the condition.
Each fact is set as a variable in the EvaluationContext.
The facts map is set as the root object of the EvaluationContext.| Constructor and Description |
|---|
SpELCondition(java.lang.String expression)
Create a new
SpELCondition. |
SpELCondition(java.lang.String expression,
org.springframework.expression.BeanResolver beanResolver)
Create a new
SpELCondition. |
SpELCondition(java.lang.String expression,
org.springframework.expression.ParserContext parserContext)
Create a new
SpELCondition. |
SpELCondition(java.lang.String expression,
org.springframework.expression.ParserContext parserContext,
org.springframework.expression.BeanResolver beanResolver)
Create a new
SpELCondition. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(Facts facts) |
public SpELCondition(java.lang.String expression)
SpELCondition.expression - the condition written in expression languagepublic SpELCondition(java.lang.String expression,
org.springframework.expression.BeanResolver beanResolver)
SpELCondition.expression - the condition written in expression languagebeanResolver - the bean resolver used to resolve bean referencespublic SpELCondition(java.lang.String expression,
org.springframework.expression.ParserContext parserContext)
SpELCondition.expression - the condition written in expression languageparserContext - the SpEL parser contextpublic SpELCondition(java.lang.String expression,
org.springframework.expression.ParserContext parserContext,
org.springframework.expression.BeanResolver beanResolver)
SpELCondition.expression - the condition written in expression languagebeanResolver - the bean resolver used to resolve bean referencesparserContext - the SpEL parser contextCopyright © 2020. All Rights Reserved.