Uses of Interface
javax.script.ScriptEngineFactory
Package | Description |
---|---|
javax.script |
The scripting API consists of interfaces and classes that define
Java™ Scripting Engines and provides
a framework for their use in Java applications.
|
jdk.nashorn.api.scripting |
This package provides the
javax.script integration, which is the preferred way to use Nashorn. |
-
Uses of ScriptEngineFactory in javax.script
Methods in javax.script that return ScriptEngineFactory Modifier and Type Method Description ScriptEngineFactory
ScriptEngine. getFactory()
Returns aScriptEngineFactory
for the class to which thisScriptEngine
belongs.Methods in javax.script that return types with arguments of type ScriptEngineFactory Modifier and Type Method Description List<ScriptEngineFactory>
ScriptEngineManager. getEngineFactories()
Returns a list whose elements are instances of all theScriptEngineFactory
classes found by the discovery mechanism.Methods in javax.script with parameters of type ScriptEngineFactory Modifier and Type Method Description void
ScriptEngineManager. registerEngineExtension(String extension, ScriptEngineFactory factory)
Registers aScriptEngineFactory
to handle an extension.void
ScriptEngineManager. registerEngineMimeType(String type, ScriptEngineFactory factory)
Registers aScriptEngineFactory
to handle a mime type.void
ScriptEngineManager. registerEngineName(String name, ScriptEngineFactory factory)
Registers aScriptEngineFactory
to handle a language name. -
Uses of ScriptEngineFactory in jdk.nashorn.api.scripting
Classes in jdk.nashorn.api.scripting that implement ScriptEngineFactory Modifier and Type Class Description class
NashornScriptEngineFactory
Deprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.