m-m-m / util

Mature Modular Meta-Framework
http://m-m-m.sourceforge.net
Apache License 2.0
10 stars 5 forks source link

mmm-util-core: enable availability of universal eventbus #105

Closed hohwille closed 10 years ago

hohwille commented 10 years ago

We need to have universal access to an eventbus. We do not want to depend on GWT itself as our abstraction would prevent such dependency and people might not want to see this in a JavaFx Client or on the server-side. However guavas Eventbus is not GWT compatible. But as the new designs of event buses are less restrictive, it is easy to wrap them. For GWT I now found this one: https://github.com/ekuefler/gwt-supereventbus

We could provide as simple interface with implementation delegating to either one of these. I still need to do some research how compatible or different these two animals are but this seems to be the solution we have been searching for a while...

hohwille commented 10 years ago

Implemented. Guava event bus can not be bridged properly due its restrictive API. gwt-supereventbus is not good for concurrent usage on the server-side. We created an own implementation that is suitable for both needs.