Class JavaScriptDslConsumer<T>

java.lang.Object
org.apache.camel.quarkus.dsl.js.runtime.JavaScriptDslConsumer<T>
Type Parameters:
T - the type of the input to the operation
All Implemented Interfaces:
Consumer<T>

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

    • JavaScriptDslConsumer

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

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

    • accept

      public void accept(T t)
      Specified by:
      accept in interface Consumer<T>