All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oberasoftware.base.event.EventBus Maven / Gradle / Ivy

There is a newer version: 3.0
Show newest version
package com.oberasoftware.base.event;

/**
 * @author renarj
 */
public interface EventBus {
    /**
     * Publish an event onto the event bus, the event could be handled asynchronously.
     * @param event The event to publish
     * @param arguments optional arguments that can be passed to the method of the event handler, will be ignored if event handler cannot accept these
     */
    void publish(Event event, Object... arguments);

    void registerHandler(EventHandler handler);

    void registerFilter(EventFilter filter);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy