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.

public class JuelServiceImpl extends Object implements JuelService
  • Field Details

  • Constructor Details

    • JuelServiceImpl

      public JuelServiceImpl(<any> expressionBlacklist, HookHandlerService hookHandler)
  • Method Details

    • provideBasicContext

      public ELContext provideBasicContext(ExpressionFactory factory)
      Description copied from interface: JuelService
      Provides a new
      invalid reference
      ELContext
      with some default values set. The ContextConfig gets newly created.
      Specified by:
      provideBasicContext in interface JuelService
      Parameters:
      factory - The
      invalid reference
      ExpressionFactory
      to create expressions with.
      Returns:
      A new
      invalid reference
      ELContext
    • provideBasicExpressionFactory

      public ExpressionFactory provideBasicExpressionFactory()
      Description copied from interface: JuelService
      Provides a new
      invalid reference
      ExpressionFactory
      with the following properties:
      • javax.el.methodInvocations: true
      • javax.el.nullProperties: false
      Specified by:
      provideBasicExpressionFactory in interface JuelService
      Returns:
      A new
      invalid reference
      ExpressionFactory
    • isValidExpression

      public boolean isValidExpression(String expression)
      Specified by:
      isValidExpression in interface JuelService
    • evaluate

      public Object evaluate(Map<String,VariableAssignment> replacementMap, String template)
      Specified by:
      evaluate in interface JuelService
    • evaluate

      public Object evaluate(ExpressionFactory factory, ELContext context, String template)
      Specified by:
      evaluate in interface JuelService