jsr223.md: do not state that SimpleRule is used only in Jython (#2354)

Co-authored-by: stefan-hoehn <mail@stefanhoehn.com>
pull/2404/head^2
Дилян Палаузов 2024-12-01 11:38:55 +01:00 committed by GitHub
parent 7ac8659731
commit 9cbdf7d545
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 11 deletions

View File

@ -340,16 +340,16 @@ The primary usage of this preset is for defining rule (`SimpleRule`) subclasses.
See language-specific documentation for examples. See language-specific documentation for examples.
| Variable | Description | | Variable | Description |
| -------------------------- | ------------------------------------------------------------------------------------------------------------ | | -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ActionType | `org.openhab.core.automation.type.ActionType` | | ActionType | [`org.openhab.core.automation.type.ActionType`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/type/actiontype) |
| ConfigDescriptionParameter | `org.openhab.core.config.core.ConfigDescriptionParameter` | | ConfigDescriptionParameter | [`org.openhab.core.config.core.ConfigDescriptionParameter`](https://www.openhab.org/javadoc/latest/org/openhab/core/config/core/configdescriptionparameter) |
| ModuleType | `org.openhab.core.automation.type.ModuleType` | | ModuleType | [`org.openhab.core.automation.type.ModuleType`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/type/moduletype) |
| SimpleActionHandler | `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleActionHandler` | | SimpleActionHandler | [`org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleActionHandler`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/module/script/rulesupport/shared/simple/simpleactionhandler) |
| SimpleConditionHandler | `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleConditionHandler` | | SimpleConditionHandler | [`org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleConditionHandler`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/module/script/rulesupport/shared/simple/simpleconditionhandler) |
| SimpleRule | Base class for Jython Rules `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleRule` | | SimpleRule | Base class for Rules [`org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleRule`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/module/script/rulesupport/shared/simple/simplerule) |
| SimpleTriggerHandler | `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleTriggerHandler` | | SimpleTriggerHandler | [`org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleTriggerHandler`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/module/script/rulesupport/shared/simple/simpletriggerhandler) |
| TriggerType | `org.openhab.core.automation.type.TriggerType` | | TriggerType | [`org.openhab.core.automation.type.TriggerType`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/type/triggertype) |
| Visibility | `org.openhab.core.automation.Visibility` enum | | Visibility | [`org.openhab.core.automation.Visibility`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/visibility) enum |
#### `RuleSupport` Preset #### `RuleSupport` Preset
@ -404,7 +404,7 @@ scriptExtension.importPreset("ScriptAction")
scriptExtension.importPreset("RuleSupport") scriptExtension.importPreset("RuleSupport")
scriptExtension.importPreset("RuleSimple") scriptExtension.importPreset("RuleSimple")
scriptExecution.createTimer(ZonedDateTime.now(), () -> { scriptExecution.createTimer(ZonedDateTime.now(), {
org.slf4j.LoggerFactory.getLogger('Test logger').warn('Timer ran') org.slf4j.LoggerFactory.getLogger('Test logger').warn('Timer ran')
}) })
``` ```