Skip to content

Commit b3fe1eb

Browse files
ScriptEngineFactory.createScriptEngine() - describe purpose of parameter
1 parent 9aa5972 commit b3fe1eb

File tree

1 file changed

+4
-1
lines changed
  • bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script

1 file changed

+4
-1
lines changed

bundles/org.openhab.core.automation.module.script/src/main/java/org/openhab/core/automation/module/script/ScriptEngineFactory.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,12 @@ public interface ScriptEngineFactory {
6868

6969
/**
7070
* This method creates a new ScriptEngine based on the supplied file extension or MimeType.
71+
* openHAB-core always passes as parameter one of the values, returned by getScriptTypes().
72+
* The parameter serves for a ScriptEngineFactory, which announces support for several
73+
* languages, e.g. Pascal and PHP, to create a ScriptEngine for the requested language.
7174
*
7275
* @param scriptType a file extension (script) or MimeType (ScriptAction or ScriptCondition)
73-
* @return ScriptEngine or null
76+
* @return ScriptEngine or, in case of error, null
7477
*/
7578
@Nullable
7679
ScriptEngine createScriptEngine(String scriptType);

0 commit comments

Comments
 (0)