http://www.object-zoo.net/events4j
[email protected]
Events4J is a simple and generic Java API that mimics the delegates (Action, Func) and events known from C# and .NET in Java to facilitate the development of loosely coupled functional units.
It is open source software released under the terms of the MIT License found in the file "LICENSE.txt"
- Introduce delegates and events as Java types, that are not available in the SDK
- Have minimal dependencies between event provider and consumer unlike traditional interface based Java event listeners
- Provide convenient way to call Java methods asynchronously
- Minimum number of interfaces that are still suitable for most situations
- Generic implementation adapts to most use cases
- Allow flexible use through adapters while sticking to the Single Responsibility Principle
- Usable in GWT applications
- Zero dependencies
- Provide a publish subscribe event bus (maybe EventBus is something for you)
- Provide automatic wiring through annotations and parameter types
- Learn by example in the Tutorial
- Browse the JavaDoc
- Include Maven artifact from JitPack
- Or download form the Releases Page
- IntelliJ IDEA (IDE)
- Infinitest (Continuous Testing)
- Gradle (Automated build)
- JitCI (Continuous Integration)
- 1.3 Renewed
- Added Java 8 functions and lambdas support
- Added parameter bindings
- Fixes and cleanups
- Switched from Maven to Gradle
- Switched from Jnario to JUnit
- Switched from Eclipse to IntelliJ IDEA
- Switched from Assembla to Github
- 1.2.1 Fixes
- Fixed GWT support
- 1.2 Extensions
- Added asynchronous action calling
- Fixes in build script
- 1.1 Repackaged, Extensions
- Added GWT support
- Splitted JARs into standard, asynchronous and GWT
- Added Event support for events with single subscribers only
- 1.0 First final release
- Completed JavaDoc
- Added Executor selection for asynchronous event delegates
- 0.9 First preview release