public final class Scripting extends Object
ScriptEngineManagermanager. Rather than using JDK's
ScriptEngineManagermanager directly, instantiate it via
Scripting.createManager()method. This method is aware of NetBeans specific runtime configurations. It uses the right classloader as well as specific discovery mechanisms to locate additional implementations of
Numberx = (
Number) js.eval("6 * 7"); assert x.intValue() == 42;
Consult scripting tutorial to learn more about advanced polyglot scripting topics.
|Modifier and Type||Method and Description|
public static ScriptEngineManager createManager()
ScriptEngineManagerconfigured for the NetBeans environment. The manager serves as an isolated environment - engines created from the same manager are supposed to share the same internals and be able to communicate with each other.