Package com.networknt.schema.regex
Class GraalJSContextFactory
java.lang.Object
com.networknt.schema.regex.GraalJSContextFactory
Factory for the js
Context
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.graalvm.polyglot.Context
Gets the singleton instance of the 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
-