GithubHelp home page GithubHelp logo

tilm4nn / events4j Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 17.42 MB

Events4J is a simple and generic Java API that mimics the delegates (Action, Func) and events known from C# and .NET in Java.

License: MIT License

Java 100.00%

events4j's Introduction

Events4J

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"

Motivation

Problems solved:

  • 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

Design goals:

  • 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

Non-goals:

  • Provide a publish subscribe event bus (maybe EventBus is something for you)
  • Provide automatic wiring through annotations and parameter types

How To Use It

Development Tools

Release History

  • 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

events4j's People

Contributors

tilm4nn avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.