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
-
Constructor Summary
-
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:AbstractEventFactory
Create a new event instance based on the event type.- Specified by:
createEventByType
in 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
-