Class GraalJSContextFactory

java.lang.Object
com.networknt.schema.regex.GraalJSContextFactory

public class GraalJSContextFactory extends Object
Factory for the js Context.
  • Constructor Details

    • GraalJSContextFactory

      public GraalJSContextFactory()
  • Method Details

    • getInstance

      public static org.graalvm.polyglot.Context getInstance()
      Gets the singleton instance of the Context.

      This may need to be closed to release resources if no longer needed.

      Returns:
      the Context