Class JuelExpressionManager

java.lang.Object
org.camunda.bpm.engine.impl.el.JuelExpressionManager
All Implemented Interfaces:
ElProviderCompatible, ExpressionManager
Direct Known Subclasses:
CdiExpressionManager, MockExpressionManager, SpringExpressionManager

public class JuelExpressionManager extends Object implements ExpressionManager, ElProviderCompatible
JUEL-specific implementation of an ExpressionManager.
Author:
Tom Baeyens, Dave Syer, Frederik Heremans
  • Field Details

    • functions

      protected Map<String,Method> functions
    • expressionFactory

      protected org.camunda.bpm.impl.juel.jakarta.el.ExpressionFactory expressionFactory
    • beans

      protected Map<Object,Object> beans
    • initialized

      protected volatile boolean initialized
    • elResolver

      protected org.camunda.bpm.impl.juel.jakarta.el.ELResolver elResolver
    • functionMapper

      protected org.camunda.bpm.impl.juel.jakarta.el.FunctionMapper functionMapper
    • parsingElContext

      protected org.camunda.bpm.impl.juel.jakarta.el.ELContext parsingElContext
    • elProvider

      protected volatile ElProvider elProvider
  • Constructor Details

    • JuelExpressionManager

      public JuelExpressionManager()
    • JuelExpressionManager

      public JuelExpressionManager(Map<Object,Object> beans)
  • Method Details

    • createExpression

      public Expression createExpression(String expression)
      Specified by:
      createExpression in interface ExpressionManager
      Returns:
      a parsed expression
    • addFunction

      public void addFunction(String name, Method function)
      Description copied from interface: ExpressionManager

      Adds a custom function to the expression manager that can be used in expression evaluation later on. Ideally, use this in the setup phase of the expression manager, i.e. before the first invocation of createExpression.

      Specified by:
      addFunction in interface ExpressionManager
    • createValueExpression

      public org.camunda.bpm.impl.juel.jakarta.el.ValueExpression createValueExpression(String expression)
    • setExpressionFactory

      public void setExpressionFactory(org.camunda.bpm.impl.juel.jakarta.el.ExpressionFactory expressionFactory)
    • getElContext

      public org.camunda.bpm.impl.juel.jakarta.el.ELContext getElContext(VariableScope variableScope)
    • createElContext

      public org.camunda.bpm.impl.juel.jakarta.el.ELContext createElContext(VariableContext variableContext)
    • createElContext

      protected ProcessEngineElContext createElContext(VariableScope variableScope)
    • ensureInitialized

      protected void ensureInitialized()
    • createElResolver

      protected org.camunda.bpm.impl.juel.jakarta.el.ELResolver createElResolver()
    • createFunctionMapper

      protected org.camunda.bpm.impl.juel.jakarta.el.FunctionMapper createFunctionMapper()
    • toElProvider

      public ElProvider toElProvider()
      Specified by:
      toElProvider in interface ElProviderCompatible
      Returns:
      an ElProvider
    • createElProvider

      protected ElProvider createElProvider()