Class AbstractRuleRegistryEvent

java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.automation.events.AbstractRuleRegistryEvent
All Implemented Interfaces:
Event
Direct Known Subclasses:
RuleAddedEvent, RuleRemovedEvent, RuleUpdatedEvent

@NonNullByDefault public abstract class AbstractRuleRegistryEvent extends AbstractEvent
abstract class for rule events
Author:
Benedikt Niehues - Initial contribution, Markus Rathgeb - Use the DTO for the Rule representation
  • Constructor Details

    • AbstractRuleRegistryEvent

      protected AbstractRuleRegistryEvent(String topic, String payload, @Nullable String source, RuleDTO rule)
      Must be called in subclass constructor to create a new rule registry event.
      Parameters:
      topic - the topic of the event
      payload - the payload of the event
      source - the source of the event
      rule - the rule for which this event is created
  • Method Details

    • getRule

      public RuleDTO getRule()
      Returns:
      the RuleDTO which caused the Event