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 functionR- the type of the result of the function
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionJavaScriptDslFunction(CharSequence source) Construct aJavaScriptDslFunctionwith the given source andtas argument name.JavaScriptDslFunction(String argumentName, CharSequence source) Construct aJavaScriptDslFunctionwith the given source and argument name. -
Method Summary
-
Constructor Details
-
JavaScriptDslFunction
Construct aJavaScriptDslFunctionwith the given source andtas argument name.- Parameters:
source- the source of the function.
-
JavaScriptDslFunction
Construct aJavaScriptDslFunctionwith the given source and argument name.- Parameters:
argumentName- the name of the argument.source- the source of the function.
-
-
Method Details