Class ScriptedAutomationManager


  • public class ScriptedAutomationManager
    extends Object
    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 Detail

      • ScriptedAutomationManager

        public ScriptedAutomationManager​(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 Detail

      • removeModuleType

        public void removeModuleType​(String UID)
      • removeHandler

        public void removeHandler​(String typeUID)
      • removePrivateHandler

        public void removePrivateHandler​(String privId)
      • removeAll

        public void removeAll()
      • addRule

        public Rule addRule​(Rule element)
      • addConditionType

        public void addConditionType​(ConditionType condititonType)
      • addConditionHandler

        public void addConditionHandler​(String uid,
                                        ScriptedHandler conditionHandler)
      • addActionType

        public void addActionType​(ActionType actionType)
      • addTriggerType

        public void addTriggerType​(TriggerType triggerType)