Class NashornSandboxes


  • public class NashornSandboxes
    extends java.lang.Object
    The Nashorn sandbox factory.

    Created on 2015-08-07

    Version:
    $Id$
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static NashornSandbox create()
      Creates a new sandbox instance.
      static NashornSandbox create​(java.lang.String... args)
      Create a sandbox while supplying arguments for the engine such as '--no-java'.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NashornSandboxes

        public NashornSandboxes()
    • Method Detail

      • create

        public static NashornSandbox create()

        Creates a new sandbox instance.

        Returns:
        The newly created sandbox instance.
      • create

        public static NashornSandbox create​(java.lang.String... args)

        Create a sandbox while supplying arguments for the engine such as '--no-java'.

        More information on available parameters can be found in the following:

        Parameters:
        args - Options for initializing the Nashorn engine.
        Returns:
        A newly created sandbox instance.