Class ConfigStatusEventFactory
java.lang.Object
org.openhab.core.events.AbstractEventFactory
org.openhab.core.config.core.status.events.ConfigStatusEventFactory
- All Implemented Interfaces:
EventFactory
The
ConfigStatusEventFactory is the event factory implementation to create configuration status events, e.g.
for ConfigStatusInfoEvent.- Author:
- Thomas Höfer - Initial contribution
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openhab.core.events.AbstractEventFactory
AbstractEventFactory.ZonedDateTimeAdapter -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openhab.core.events.AbstractEventFactory
checkNotNull, checkNotNullOrEmpty, createEvent, deserializePayload, getSupportedEventTypes, getTopicElements, serializePayload
-
Constructor Details
-
ConfigStatusEventFactory
public ConfigStatusEventFactory()Creates a newConfigStatusEventFactory.
-
-
Method Details
-
createEventByType
protected Event createEventByType(String eventType, String topic, String payload, @Nullable String source) throws Exception Description copied from class:AbstractEventFactoryCreate a new event instance based on the event type.- Specified by:
createEventByTypein classAbstractEventFactory- Parameters:
eventType- the event typetopic- the topicpayload- the payloadsource- the source, can be null- Returns:
- the created event instance
- Throws:
Exception- if the creation of the event fails
-