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

jpower.event.IEventBus Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package jpower.event;

/**
 * Interface for representing an Event Bus
 */
public interface IEventBus
{

    /**
     * Register an Event handler
     * @param handler handler to register
     */
    public void register(final Object handler);

    /**
     * Unregister an Event handler
     * @param handler handler to unregister
     * @return true if the handler was unregistered
     */
    public boolean unregister(final Object handler);

    /**
     * Post an Event
     * @param event event to post
     */
    public void post(final Object event);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy