Class JavaScriptDslProcessor

java.lang.Object
org.apache.camel.quarkus.dsl.js.runtime.JavaScriptDslProcessor
All Implemented Interfaces:
org.apache.camel.Processor

public final class JavaScriptDslProcessor extends Object implements org.apache.camel.Processor
JavaScriptDslProcessor is meant to be used as type of Processor from a JavaScript file to remain compatible with the native mode that doesn't support the function Java.extend.
  • Constructor Details

    • JavaScriptDslProcessor

      public JavaScriptDslProcessor(CharSequence source)
      Construct a JavaScriptDslProcessor with the given source and exchange as argument name.
      Parameters:
      source - the source of the processor.
    • JavaScriptDslProcessor

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

    • process

      public void process(org.apache.camel.Exchange exchange)
      Specified by:
      process in interface org.apache.camel.Processor