Class ScriptedAutomationManager
java.lang.Object
org.openhab.core.automation.module.script.rulesupport.shared.ScriptedAutomationManager
This Registry is used for a single ScriptEngine instance. It allows the adding and removing of handlers.
It allows the removal of previously added modules on unload.
- Author:
- Simon Merschjohann - Initial contribution
-
Constructor Summary
ConstructorDescriptionScriptedAutomationManager
(RuleSupportRuleRegistryDelegate ruleRegistryDelegate, org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleHandlerFactory scriptedCustomModuleHandlerFactory, org.openhab.core.automation.module.script.rulesupport.internal.ScriptedCustomModuleTypeProvider scriptedCustomModuleTypeProvider, org.openhab.core.automation.module.script.rulesupport.internal.ScriptedPrivateModuleHandlerFactory scriptedPrivateModuleHandlerFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionHandler
(String uid, ScriptedHandler actionHandler) void
addActionType
(ActionType actionType) void
addConditionHandler
(String uid, ScriptedHandler conditionHandler) void
addConditionType
(ConditionType conditionType) addPrivateActionHandler
(SimpleActionHandler actionHandler) addPrivateConditionHandler
(SimpleConditionHandler conditionHandler) addPrivateTriggerHandler
(SimpleTriggerHandler triggerHandler) void
addTriggerHandler
(String uid, ScriptedHandler triggerHandler) void
addTriggerType
(TriggerType triggerType) addUnmanagedRule
(Rule element) void
void
removeHandler
(String typeUID) void
removeModuleType
(String uid) void
removePrivateHandler
(String privId)
-
Constructor Details
-
Method Details
-
removeModuleType
-
removeHandler
-
removePrivateHandler
-
removeAll
public void removeAll() -
addRule
-
addUnmanagedRule
-
addConditionType
-
addActionType
-
addTriggerType
-