JavaFX Event Bus Recommendations
John Smith
John_Smith at symantec.com
Thu Oct 25 12:13:25 PDT 2012
There are a couple of forum threads on Event Buses you could read to see what other people have done around this:
https://forums.oracle.com/forums/thread.jspa?messageID=10548299
https://forums.oracle.com/forums/thread.jspa?messageID=10590312
One of them includes a link to a simple JavaFX implementation which Greg Brown created http://code.google.com/p/sjmb/ (unfortunately the link doesn't work for me as I am not authorized to view it).
-----Original Message-----
From: openjfx-dev-bounces at openjdk.java.net [mailto:openjfx-dev-bounces at openjdk.java.net] On Behalf Of Mark Fortner
Sent: Thursday, October 25, 2012 11:31 AM
To: openjfx-dev at openjdk.java.net
Subject: JavaFX Event Bus Recommendations
In my current application we're using the standard point2point eventing that comes with JavaFX. To create support for a new type of event we:
- Create an EventType class.
- Create an Event class
- Create an Event Listener interface for it.
- Add a mixin that makes it easier to add/remove/notify listeners.
Since there are several developers on the list who make heavy use of the Spring framework, I was wondering if anyone had tried using the Spring Eventing framework http://blog.yohanliyanage.com/2012/09/eventing-with-spring-framework/ as more scaleable approach to adding support for new events? Or if there were any other Event Bus frameworks that the community could recommend for use with JavaFX?
Also, are there any plans to more directly support an Event Bus in JavaFX?
Cheers,
Mark
More information about the openjfx-dev
mailing list