Interface SimpleLanguageFunctionFactory


public interface SimpleLanguageFunctionFactory
A factory for extending the simple language with functions from external components.

This requires to have the external component JAR on the classpath.

Since:
4.10
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Service factory key.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable String
    createCode(CamelContext camelContext, String function, int index)
    Deprecated.
    will be removed along with csimple
    @Nullable Expression
    createFunction(CamelContext camelContext, String function, int index)
    Creates the Expression that performs the function.
  • Field Details

  • Method Details

    • createFunction

      @Nullable Expression createFunction(CamelContext camelContext, String function, int index)
      Creates the Expression that performs the function.
      Parameters:
      camelContext - the camel context
      function - the function
      index - index of the function in the literal input
      Returns:
      the created function as an expression, or null if not supported by this factory.
    • createCode

      @Deprecated(since="4.21") default @Nullable String createCode(CamelContext camelContext, String function, int index)
      Deprecated.
      will be removed along with csimple
      Creates the Java source code that performs the function (for csimple).
      Parameters:
      camelContext - the camel context
      function - the function
      index - index of the function in the literal input
      Returns:
      the source code or null if not supported by this factory.