Class NashornUtils


  • @Deprecated
    public final class NashornUtils
    extends Object
    Deprecated.
    Nashorn will be removed after jdk 11, so nashorn engine ill be removed in the next major version.
    Nashorn Utilities.
    • Method Detail

      • getEngine

        public static ScriptEngine getEngine()
        Deprecated.
        Get new nashorn engine.
        Returns:
        Nashorn Engine.
      • getEngine

        public static ScriptEngine getEngine​(Collection<InputStream> scripts)
        Deprecated.
        Get new nashorn engine.
        Parameters:
        scripts - List of scripts to evaluate.
        Returns:
        Nashorn Engine.