Package net.datenwerke.rs.utils.juel
Class JuelServiceImpl
java.lang.Object
net.datenwerke.rs.utils.juel.JuelServiceImpl
- All Implemented Interfaces:
JuelService
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Field Summary
FieldsFields inherited from interface net.datenwerke.rs.utils.juel.JuelService
JUEL_SANDBOX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(Map<String, VariableAssignment> replacementMap, String template) booleanisValidExpression(String expression) ELContextprovideBasicContext(ExpressionFactory factory) Provides a newwith some default values set.invalid reference
ELContextExpressionFactoryProvides a newwith the following properties: javax.el.methodInvocations: true javax.el.nullProperties: falseinvalid reference
ExpressionFactory
-
Field Details
-
VARIABLE_CURRENT_DATE
- See Also:
-
TODAY
- See Also:
-
-
Constructor Details
-
Method Details
-
provideBasicContext
public ELContext provideBasicContext(ExpressionFactory factory) Description copied from interface:JuelServiceProvides a newwith some default values set. The ContextConfig gets newly created.invalid reference
ELContext- Specified by:
provideBasicContextin interfaceJuelService- Parameters:
factory- Theto create expressions with.invalid reference
ExpressionFactory- Returns:
- A new
invalid reference
ELContext
-
provideBasicExpressionFactory
public ExpressionFactory provideBasicExpressionFactory()Description copied from interface:JuelServiceProvides a newwith the following properties:invalid reference
ExpressionFactory- javax.el.methodInvocations: true
- javax.el.nullProperties: false
- Specified by:
provideBasicExpressionFactoryin interfaceJuelService- Returns:
- A new
invalid reference
ExpressionFactory
-
isValidExpression
- Specified by:
isValidExpressionin interfaceJuelService
-
evaluate
- Specified by:
evaluatein interfaceJuelService
-
evaluate
- Specified by:
evaluatein interfaceJuelService
-