Reputation: 20150
I am not aware of the many frameworks on the market but i wanted to know something, Like the event bus concept in GWT, does this technique exist in other framework??
Upvotes: 3
Views: 687
Reputation: 161
I think Event Bus is to decouple the sender and receiver, you may take a look for Listener Pattern in Design Pattern.
Upvotes: 1
Reputation: 9009
Many UI frameworks use an EventBus model. Events are just asynchronous messages. UI frameworks usually use these asynchronous mechanisms for notifications because they don't want to block the user from interacting with the system while it is processing the last change they made to the UI. Sometimes people write these busses themselves using the Observer Pattern, and sometimes the frameworks provide them.
Events and event buses have parallels in other asynchronous systems. For example, message oriented middleware (e.g. a JMS server) is a cross-process or cross-system mechanism that is conceptually the same thing as a EventBus.
Upvotes: 2