Package delight.nashornsandbox
Class NashornSandboxes
- java.lang.Object
-
- delight.nashornsandbox.NashornSandboxes
-
public class NashornSandboxes extends java.lang.Object
The Nashorn sandbox factory.Created on 2015-08-07
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description NashornSandboxes()
-
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'.
-
-
-
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.
-
-