< prev index next >

## src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/scripting/package-info.java

Print this page

      21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
      22  * or visit www.oracle.com if you need additional information or have any
      23  * questions.
      24  */
      25
      26 /**
      27  * This package provides the {@code javax.script} integration, which is the preferred way to use Nashorn.
      28  * You will ordinarily do this to obtain an instance of a Nashorn script engine:
      29  * <pre>
      30  * import javax.script.*;
      31  * ...
      32  * ScriptEngine nashornEngine = new ScriptEngineManager().getEngineByName("Nashorn");
      33  * </pre>
      34  * <p>Nashorn script engines implement the optional {@link javax.script.Invocable} and {@link javax.script.Compilable}
      35  * interfaces, allowing for efficient pre-compilation and repeated execution of scripts. In addition,
      36  * this package provides nashorn specific extension classes, interfaces and methods. See
      37  * {@link jdk.nashorn.api.scripting.NashornScriptEngineFactory} for further details.
      38  *
      39  * @since 1.8u40
      40  */

      41 package jdk.nashorn.api.scripting;
      21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
      22  * or visit www.oracle.com if you need additional information or have any
      23  * questions.
      24  */
      25
      26 /**
      27  * This package provides the {@code javax.script} integration, which is the preferred way to use Nashorn.
      28  * You will ordinarily do this to obtain an instance of a Nashorn script engine:
      29  * <pre>
      30  * import javax.script.*;
      31  * ...
      32  * ScriptEngine nashornEngine = new ScriptEngineManager().getEngineByName("Nashorn");
      33  * </pre>
      34  * <p>Nashorn script engines implement the optional {@link javax.script.Invocable} and {@link javax.script.Compilable}
      35  * interfaces, allowing for efficient pre-compilation and repeated execution of scripts. In addition,
      36  * this package provides nashorn specific extension classes, interfaces and methods. See
      37  * {@link jdk.nashorn.api.scripting.NashornScriptEngineFactory} for further details.
      38  *
      39  * @since 1.8u40
      40  */
      41 @Deprecated(since="11", forRemoval=true)
      42 package jdk.nashorn.api.scripting;

< prev index next >