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)
JuelService
ELContext
with some default values set. The
ContextConfig gets newly created.provideBasicContext
in interface JuelService
factory
- The ExpressionFactory
to create expressions with.ELContext
public ExpressionFactory provideBasicExpressionFactory()
JuelService
ExpressionFactory
with the following properties:
provideBasicExpressionFactory
in interface JuelService
ExpressionFactory
public boolean isValidExpression(java.lang.String expression)
isValidExpression
in interface JuelService
public java.lang.Object evaluate(java.util.Map<java.lang.String,VariableAssignment> replacementMap, java.lang.String template)
evaluate
in interface JuelService
public java.lang.Object evaluate(ExpressionFactory factory, ELContext context, java.lang.String template)
evaluate
in interface JuelService