org.ioc.commons.flowcontrol.HasFlowControl 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;
import org.ioc.commons.flowcontrol.actioncontroller.ActionController;
import org.ioc.commons.flowcontrol.actioncontroller.IsExternalAction;
import org.ioc.commons.flowcontrol.eventbus.EventBus;
import org.ioc.commons.flowcontrol.eventbus.IsEvent;
import org.ioc.commons.flowcontrol.operationmanager.IsOperation;
import org.ioc.commons.flowcontrol.operationmanager.OperationManager;
/**
* It represents elements which have the three main components for managing the
* flow control: Event bus, operation manager and action controller.
*
* @author Jesús Lunar Pérez
*
* @param Event type
* @param Operation type
* @param Action type
*/
public interface HasFlowControl, O extends Enum extends IsOperation>, A extends Enum extends IsExternalAction>> {
/**
*
* @return An event bus
*/
EventBus eventBus();
/**
*
* @return An operation manager
*/
OperationManager operationManager();
/**
*
* @return An action controller
*/
ActionController actionController();
}