ScriptEngineFactory
Interface ScriptEngineFactory
public interface ScriptEngineFactory
ScriptEngineFactory
is used to describe and instantiate ScriptEngines
.
Each class implementing ScriptEngine
has a corresponding factory that exposes metadata describing the engine class.
The ScriptEngineManager
uses the service provider mechanism described in the Jar File Specification to obtain instances of all ScriptEngineFactories
available in the current ClassLoader.
- Since:
- 1.6
Methods
getEngineName
String getEngineName()
Returns the full name of the ScriptEngine
. For instance an implementation based on the Mozilla Rhino Javascript engine might return Rhino Mozilla Javascript Engine.
- Returns:
- 登录查看完整内容