Class ItemAddedEvent

All Implemented Interfaces:
Event

@NonNullByDefault public class ItemAddedEvent extends AbstractItemRegistryEvent
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 Details

    • TYPE

      public static final String TYPE
      The item added event type.
  • Constructor Details

    • ItemAddedEvent

      protected ItemAddedEvent(String topic, String payload, ItemDTO item)
      Constructs a new item added event object.
      Parameters:
      topic - the topic
      payload - the payload
      item - the item data transfer object
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Event
      Gets the event type.
      Returns:
      the event type
    • toString

      public String toString()
      Overrides:
      toString in class Object