Class RuleAddedEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.automation.events.AbstractRuleRegistryEvent
org.openhab.core.automation.events.RuleAddedEvent
- All Implemented Interfaces:
Event
An
RuleAddedEvent
notifies subscribers that a rule has been added.- Author:
- Benedikt Niehues - Initial contribution
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRuleAddedEvent
(String topic, String payload, @Nullable String source, RuleDTO rule) constructs a new rule added event -
Method Summary
Methods inherited from class org.openhab.core.automation.events.AbstractRuleRegistryEvent
getRule
Methods inherited from class org.openhab.core.events.AbstractEvent
equals, getPayload, getSource, getTopic, hashCode
-
Field Details
-
TYPE
-
-
Constructor Details
-
RuleAddedEvent
constructs a new rule added event- Parameters:
topic
- the topic of the eventpayload
- the payload of the eventsource
- the source of the eventrule
- the rule for which this event is created
-
-
Method Details