HandlerManager is the ancestor of the EventBus , which was extracted from (factored out) from it.
The main difference is that the HandlerManager has a source that for execution on events that are sent to it, while the EventBus can send events without any source ( fireEvent ) or with a given dynamic source ( fireEventFromSource ). Then you can bind handlers to EventBus , which will be triggered only for events from this source.
Inside the widgets you want to determine that the event source is the widget. For a global application event bus on a scale, you donβt or donβt want to dynamically set a source or source for each event, if necessary ( RequestFactory uses it for its EntityProxyChange events, so you can only listen to the event associated with this view of EntityProxy )
Note: javadoc for HandlerManager does not recommend using it for a common event bus.
source share