org.ioc.commons.flowcontrol.eventbus.EventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ioc-commons Show documentation
Show all versions of ioc-commons Show documentation
This project defines a set of useful java interfaces for helping you in the definition of the structure of your developments in Java-projects which are designed using a Inversion-Of-Control (IOC) pattern. Useful for MVP-Pattern designs in applications coded on GWT, SWT, Android, etc.
package org.ioc.commons.flowcontrol.eventbus;
/**
* Handler for events
*
* @author Jesús Lunar Pérez
*
* @param
* Event type
*/
public interface EventHandler> {
/**
* Method which will be called when a bound event is fired.
*
* @param sender
* Entity which fired the event
* @param event
* Fired event
* @param params
* Sent parameters along with the event
*/
void handleEvent(Object sender, E event, Object... params);
}