Skip to content

Commit

Permalink
Update events.md (#1063)
Browse files Browse the repository at this point in the history
* Update events.md

* Update events.md

Fix typo.
  • Loading branch information
tk-innoq authored and Confectrician committed Oct 21, 2019
1 parent 5b4b99d commit 8732d47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions developers/utils/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 8732d47

Please sign in to comment.