Interface ElContextFactory

All Known Implementing Classes:
FeelElContextFactory

public interface ElContextFactory
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a custom function which can be used by the context.
    ELContext
    createContext(ExpressionFactory expressionFactory, VariableContext variableContext)
    Create a ELContext for the given ExpressionFactory and VariableContext.
  • Method Details

    • createContext

      ELContext createContext(ExpressionFactory expressionFactory, VariableContext variableContext)
      Create a ELContext for the given ExpressionFactory and VariableContext.
      Parameters:
      expressionFactory - the ExpressionFactory to use
      variableContext - the VariableContext to use
      Returns:
      the ELContext instance
    • addCustomFunction

      void addCustomFunction(String name, Method method)
      Add a custom function which can be used by the context.
      Parameters:
      name - the name of the function
      method - the method reference of the function