Class JavaScriptDslFunction<T,R>

java.lang.Object
org.apache.camel.quarkus.dsl.js.runtime.JavaScriptDslFunction<T,R>
Type Parameters:
T - the type of the input to the function
R - the type of the result of the function
All Implemented Interfaces:
Function<T,R>

public final class JavaScriptDslFunction<T,R> extends Object implements Function<T,R>
JavaScriptDslFunction is meant to be used as type of Function from a JavaScript file to remain compatible with the native mode that doesn't support the function Java.extend.
  • Constructor Details

    • JavaScriptDslFunction

      public JavaScriptDslFunction(CharSequence source)
      Construct a JavaScriptDslFunction with the given source and t as argument name.
      Parameters:
      source - the source of the function.
    • JavaScriptDslFunction

      public JavaScriptDslFunction(String argumentName, CharSequence source)
      Construct a JavaScriptDslFunction with the given source and argument name.
      Parameters:
      argumentName - the name of the argument.
      source - the source of the function.
  • Method Details