• 0

Java event framework similar to C# events


Question

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.

  • Like 3

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Posts

    • I too have worked with pro gear for decades and so I found the interface to be unintuitive from both the pro and casual side (a rare "accomplishment" by what are obviously otherwise skilled coders, hehe). I eventually got it to work, thanks for offering, but I found other compatibility issues with my own use case, so I just dropped it entirely. Right now, I just use an analog line out/line in approach which works as expected across all usage scenarios. With both machines on the same power block/outlet, I'm not getting any analog hum or hiss. My next step will be to try the updated Multiplicity 4 when a bug, addressing this very issue unfortunately, is resolved. Knowing Stardock, that could be tomorrow or five years from now, so I check back every few months to see it it's fixed and I want to upgrade. Again, thanks for offering to help.
    • We recognize that performance can use some improvements, and we continue to work on improving it. However, it's worth noting that massive performance improvements don't happen overnight, they take a lot of work and effort, and in most cases, the improvements are more noticeable when you compare across several updates. That said, Files is open-source and everyone is invited to help with these efforts 🙂
    • A lot of effort has gone into improving stability and Files Preview now has a 99% crash free rate. These improvements will make their way to Files Stable when v4 is released later this year. If you're still experiencing issues, please report them on GitHub or Discord so we can track them properly.
    • In addition to the political nature of Elon musk aside. AI Chat bots still have issues that is still a bit of a black box they are still trying to figure and are still not trust worthy to do what they say at this time. This is an area of “go fast and break things” mantra with tech is a very bad idea.
  • Recent Achievements

    • Rookie
      Snake Doc went up a rank
      Rookie
    • First Post
      nobody9 earned a badge
      First Post
    • One Month Later
      Ricky Chan earned a badge
      One Month Later
    • First Post
      leoniDAM earned a badge
      First Post
    • Reacting Well
      Ian_ earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      498
    2. 2
      Michael Scrip
      203
    3. 3
      ATLien_0
      198
    4. 4
      Xenon
      137
    5. 5
      +FloatingFatMan
      116
  • Tell a friend

    Love Neowin? Tell a friend!