Class NashornSandboxes
java.lang.Object
delight.nashornsandbox.NashornSandboxes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NashornSandboxcreate()Creates a new sandbox instance.static NashornSandboxCreate 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.
-