Skip to content
Simple EventBus/PubSub implementations for demos/tests/etc (Not for production)
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

General description

This is simple event bus (or publishing/subscribing) package for Java.

Example of usage

There are some tests provided, but general idea is:

public class TestHandler {  

    public void handleString(String event) {
EventDispatcher disp = new EventDispatcher();
TestHandler handler = new TestHandler();        

EventHandler methods should be public methods with only one parameter. And type of this parameter determine type of the event that this method should handle.

Something went wrong with that request. Please try again.