- All Implemented Interfaces:
@NonNullByDefault public class LinkEventFactory extends AbstractEventFactory
This is an
EventFactoryfor creating link events. The following event types are supported by this factory:
- Dennis Nobel - Initial contribution, Kai Kreuzer - Removed Thing link events
Constructor SummaryConstructorDescriptionConstructs a new LinkEventFactory.
Method SummaryModifier and TypeMethodDescription
protected EventCreate a new event instance based on the event type.
static ItemChannelLinkAddedEventCreates an item channel link added event.
static ItemChannelLinkRemovedEventCreates an item channel link removed event.
Methods inherited from class org.openhab.core.events.AbstractEventFactory
checkNotNull, checkNotNullOrEmpty, createEvent, deserializePayload, getSupportedEventTypes, getTopicElements, serializePayload
LinkEventFactorypublic LinkEventFactory()Constructs a new LinkEventFactory.
createEventByTypeprotected Event createEventByType
(String eventType, String topic, String payload, @Nullable String source) throws ExceptionDescription copied from class:
AbstractEventFactoryCreate a new event instance based on the event type.