Skip to content

Commit 6f6d0c8

Browse files
ScriptEngineFactory.createScriptEngine() - describe purpose of parameter
1 parent 45cbdbe commit 6f6d0c8

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ 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+
* distinct languages, to create a ScriptEngine for the requested language.
7174
*
7275
* @param scriptType a file extension (script) or MimeType (ScriptAction or ScriptCondition)
7376
* @return ScriptEngine or null

0 commit comments

Comments
 (0)