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.

  • Field Details

  • Method Details

    • createFunction

      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

      String createCode(CamelContext camelContext, String function, int index)
      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.