Class JavaScriptDslSupplier<T>

java.lang.Object
org.apache.camel.quarkus.dsl.js.runtime.JavaScriptDslSupplier<T>
Type Parameters:
T - the type of results supplied by this supplier
All Implemented Interfaces:
Supplier<T>

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

    • JavaScriptDslSupplier

      public JavaScriptDslSupplier(CharSequence source)
      Construct a JavaScriptDslSupplier with the given source.
      Parameters:
      source - the source of the supplier.
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface Supplier<T>