Class NashornSandboxes

java.lang.Object
delight.nashornsandbox.NashornSandboxes

public class NashornSandboxes extends Object
The Nashorn sandbox factory.

Created on 2015-08-07

Version:
$Id$
  • Constructor Details

    • NashornSandboxes

      public NashornSandboxes()
  • Method Details

    • create

      public static NashornSandbox create()

      Creates a new sandbox instance.

      Returns:
      The newly created sandbox instance.
    • create

      public static NashornSandbox create(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.