-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 2 replies
- 1 view
-
GitHub's claims under scrutiny over Copilot's questionable code quality metrics
By Fiza Ali,
- github
- dan cimpianu
- (and 6 more)
- 1 reply
- 0 views
-
Programming with GitHub Copilot: Write Better Code--Faster! (worth $48) free eBook
By News Staff,
- ebook offer
- sponsored
- (and 4 more)
- 0 replies
- 1 view
-
ICYMI: Microsoft Visual Studio 2022 v17.13 Preview 1 is available
By zikalify,
- microsoft
- visual studio
- (and 5 more)
- 0 replies
- 1 view
-
Supermaven and Cursor unite to take on GitHub Copilot in the AI coding arena
By pradeepviswav,
- supermaven
- cursor
- (and 4 more)
- 0 replies
- 1 view
-
Question
TechAddict
Hello java developers,
I am primarily a java developer but I've recently done some C# work and one thing that i really liked was how C# makes event driven programming so easy. So, when I came back to Java, it was a feature that i really missed. Of course, event driven programming is not impossible to do in Java, but it requires you to write addListener, removeListener, keep a list of observers etc in each class. You an also make your of Observable interface but it just does not offers the same flexibility as C# events.
I've searched for good libraries that offers similar functionality, but most of then were mainly annotation driven or hard to use or too complicated. So decided to write a framework myself. After spending some considerable amount of time researching and trying out different methods, I've finished a java library that tries to mimic C# events while keeping the code very minimal. And I though I might make the library available to anyone interested in this small project or those who have been looking for a good event driven framework.
The project is called "JEvents" (yeah,i know, a lame name) and is available here -> http://chanthus.github.io/JEvents/
Hope you find it useful. Feel free to point out any mistakes or give any suggestions.
Link to comment
https://www.neowin.net/forum/topic/1175275-java-event-framework-similar-to-c-events/Share on other sites
1 answer to this question
Recommended Posts