Package delight.nashornsandbox
Class NashornSandboxes
java.lang.Object
delight.nashornsandbox.NashornSandboxes
The Nashorn sandbox factory.
Created on 2015-08-07
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NashornSandbox
create()
Creates a new sandbox instance.static NashornSandbox
Create a sandbox while supplying arguments for the engine such as '--no-java'.
-
Constructor Details
-
NashornSandboxes
public NashornSandboxes()
-
-
Method Details
-
create
Creates a new sandbox instance.
- Returns:
- The newly created sandbox instance.
-
create
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.
-