Package org.openhab.core.items.events
Class ItemAddedEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.items.events.AbstractItemRegistryEvent
org.openhab.core.items.events.ItemAddedEvent
- All Implemented Interfaces:
Event
An
ItemAddedEvent
notifies subscribers that an item has been added.
Item added events must be created with the ItemEventFactory
.- Author:
- Stefan Bußweiler - Initial contribution
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ItemAddedEvent
(String topic, String payload, ItemDTO item) Constructs a new item added event object. -
Method Summary
Methods inherited from class org.openhab.core.items.events.AbstractItemRegistryEvent
getItem
Methods inherited from class org.openhab.core.events.AbstractEvent
equals, getPayload, getSource, getTopic, hashCode
-
Field Details
-
TYPE
The item added event type.
-
-
Constructor Details
-
ItemAddedEvent
Constructs a new item added event object.- Parameters:
topic
- the topicpayload
- the payloaditem
- the item data transfer object
-
-
Method Details