Package com.lucidworks.apollo.util
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.
Factory interface for creating GraalVM JavaScript contexts with different security configurations.
-
Method Summary
Modifier and TypeMethodDescriptionorg.graalvm.polyglot.Contextcreate(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 usefileSystem- the file system to use (may be null for isolated contexts)- Returns:
- a configured GraalVM Context
-