Differences
This shows you the differences between two versions of the page.
e4_event_broker [2013/12/05 22:03] |
e4_event_broker [2021/04/05 11:23] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== e4 EventBroker ====== | ||
+ | The e4 EventBroker is a service bus component which is not an OSGi component but an Eclipse e4 component which can be injected via '' | ||
+ | <sxh java> | ||
+ | Map< | ||
+ | map.put(IEventBroker.DATA, | ||
+ | eventBroker.post(topic, | ||
+ | </ | ||
+ | |||
+ | Additional data can be passed to the event receiver by adding them to the map. | ||
+ | <sxh java> | ||
+ | Map< | ||
+ | map.put(IEventBroker.DATA, | ||
+ | map.put(another_property, | ||
+ | eventBroker.post(topic, | ||
+ | </ | ||
+ | |||
+ | It can also be much simple: Just pass object to the event broker. The event broker will wrap it into a map and return that to the receiver, key '' | ||
+ | |||
+ | <sxh java> | ||
+ | eventBroker.post(topic, | ||
+ | </ | ||
+ | |||
+ | {{tag>e4 java}} |