Interface GraalVMContextFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GraalVMContextFactory
Factory interface for creating GraalVM JavaScript contexts with different security configurations.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.graalvm.polyglot.Context
    create(org.graalvm.polyglot.Engine engine, org.graalvm.polyglot.io.FileSystem fileSystem)
    Creates a GraalVM JavaScript context.
  • Method Details

    • create

      org.graalvm.polyglot.Context create(org.graalvm.polyglot.Engine engine, org.graalvm.polyglot.io.FileSystem fileSystem)
      Creates a GraalVM JavaScript context.
      Parameters:
      engine - the GraalVM engine to use
      fileSystem - the file system to use (may be null for isolated contexts)
      Returns:
      a configured GraalVM Context