Package org.openhab.core.thing.events
Class AbstractThingRegistryEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.thing.events.AbstractThingRegistryEvent
- All Implemented Interfaces:
Event
- Direct Known Subclasses:
ThingAddedEvent,ThingRemovedEvent,ThingUpdatedEvent
Abstract implementation of a thing registry event which will be posted by a
ThingRegistry for added, removed
and updated items.- Author:
- Stefan Bußweiler - Initial contribution
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractThingRegistryEvent(String topic, String payload, @Nullable String source, ThingDTO thing) Must be called in subclass constructor to create a new thing registry event. -
Method Summary
Methods inherited from class org.openhab.core.events.AbstractEvent
equals, getPayload, getSource, getTopic, hashCode
-
Constructor Details
-
AbstractThingRegistryEvent
protected AbstractThingRegistryEvent(String topic, String payload, @Nullable String source, ThingDTO thing) Must be called in subclass constructor to create a new thing registry event.- Parameters:
topic- the topicpayload- the payloadsource- the sourcething- the thing data transfer object
-
-
Method Details
-
getThing
Gets the thing data transfer object.- Returns:
- the thing data transfer object
-