ScriptEngineFactory.createScriptEngine() - describe purpose of parameter (#5066)

This commit is contained in:
Дилян Палаузов
2025-11-25 08:55:56 +01:00
committed by GitHub
parent 45cbdbec04
commit 1aa3f67bde
@@ -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