mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
ScriptEngineFactory.createScriptEngine() - describe purpose of parameter (#5066)
This commit is contained in:
+3
@@ -68,6 +68,9 @@ public interface ScriptEngineFactory {
|
||||
|
||||
/**
|
||||
* This method creates a new ScriptEngine based on the supplied file extension or MimeType.
|
||||
* openHAB-core always passes as parameter one of the values, returned by getScriptTypes().
|
||||
* The parameter serves for a ScriptEngineFactory, which announces support for several
|
||||
* distinct languages, to create a ScriptEngine for the requested language.
|
||||
*
|
||||
* @param scriptType a file extension (script) or MimeType (ScriptAction or ScriptCondition)
|
||||
* @return ScriptEngine or null
|
||||
|
||||
Reference in New Issue
Block a user