Class GraalJSRegularExpressionFactory

java.lang.Object
com.networknt.schema.regex.GraalJSRegularExpressionFactory
All Implemented Interfaces:
RegularExpressionFactory

public class GraalJSRegularExpressionFactory extends Object implements RegularExpressionFactory
GraalJS RegularExpressionFactory.

This requires a dependency on org.graalvm.js:js which along with its dependency libraries are 50 MB.

  • Constructor Details

    • GraalJSRegularExpressionFactory

      public GraalJSRegularExpressionFactory()
      Constructor.

      This uses the context from GraalJSContextFactory.getInstance().

      It is the caller's responsibility to release the context when it is no longer required by using GraalJSContextFactory.getInstance().close().

    • GraalJSRegularExpressionFactory

      public GraalJSRegularExpressionFactory(org.graalvm.polyglot.Context context)
      Constructor.

      It is the caller's responsibility to release the context when it is no longer required.

      Parameters:
      context - the context
  • Method Details