public class JuelServiceImpl extends java.lang.Object implements JuelService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TODAY |
static java.lang.String |
VARIABLE_CURRENT_DATE |
JUEL_SANDBOX| Constructor and Description |
|---|
JuelServiceImpl(<any> expressionBlacklist,
HookHandlerService hookHandler) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(ExpressionFactory factory,
ELContext context,
java.lang.String template) |
java.lang.Object |
evaluate(java.util.Map<java.lang.String,VariableAssignment> replacementMap,
java.lang.String template) |
boolean |
isValidExpression(java.lang.String expression) |
ELContext |
provideBasicContext(ExpressionFactory factory)
Provides a new
ELContext with some default values set. |
ExpressionFactory |
provideBasicExpressionFactory()
Provides a new
ExpressionFactory with the following properties:
javax.el.methodInvocations: true
javax.el.nullProperties: false
|
public static final java.lang.String VARIABLE_CURRENT_DATE
public static final java.lang.String TODAY
public JuelServiceImpl(<any> expressionBlacklist,
HookHandlerService hookHandler)
public ELContext provideBasicContext(ExpressionFactory factory)
JuelServiceELContext with some default values set. The
ContextConfig gets newly created.provideBasicContext in interface JuelServicefactory - The ExpressionFactory to create expressions with.ELContextpublic ExpressionFactory provideBasicExpressionFactory()
JuelServiceExpressionFactory with the following properties:
provideBasicExpressionFactory in interface JuelServiceExpressionFactorypublic boolean isValidExpression(java.lang.String expression)
isValidExpression in interface JuelServicepublic java.lang.Object evaluate(java.util.Map<java.lang.String,VariableAssignment> replacementMap, java.lang.String template)
evaluate in interface JuelServicepublic java.lang.Object evaluate(ExpressionFactory factory,
ELContext context,
java.lang.String template)
evaluate in interface JuelService