Update events.md (#1063)

* Update events.md

* Update events.md

Fix typo.
pull/1066/head
tk-innoq 2019-10-21 12:41:04 +02:00 committed by Jerome Luckenbach
parent 5b4b99d5d6
commit 8732d478a1
1 changed files with 1 additions and 0 deletions

View File

@ -338,3 +338,4 @@ If the payload is serialized with JSON, the method `deserializePayload(String pa
- Provide a static method to create event instances based on a domain object (Item, Thing, or in the example above `Sunrise`).
This method can be used by components in order to create events based on domain objects which should be sent by the EventPublisher.
If the data transfer object should be serialized into a JSON payload, the method `serializePayload(Object payloadObject)` can be used.
Custom event factories must be registered as an OSGi Service (eg. by using the @Component annotation) in order to receive the custom events.