Jul 12th, 2009, 10:29 AM
Application Events in Spring RCP
In the application I'm developing, i have used several panels and sub panels.. sometimes i need some events fired on button clicks, but the problem is those buttons reside in much deeper sub panels, and its kind of hard to have reference of those , therefore, i decided to use Application Events .. but some other guy told me that Application Events are much expensive , so not to use those ... is that true? Are those much expensive? if so, why those are available in the framework ??
could you plesase provide me an altrenative solution also .. ?
Thanks in advance ..
Jul 13th, 2009, 05:26 PM
I've used application events before to decouple my components and haven't noticed them being too expensive. I'd say if the events are being generated by humans any overhead will be negligible.
That said, I've been using eventbus (https://eventbus.dev.java.net/) recently for the same purpose with great success.