org.ioc.commons.flowcontrol.operationmanager.OperationManagerTrigger 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.operationmanager;
/**
* Trigger for operations
*
* @author Jesús Lunar Pérez
*
* @param
*/
public interface OperationManagerTrigger> extends HasPendingOperations {
/**
* Indicates that an operation is being begun
*
* @param operation
* The operation
*/
void operationBeginning(O operation);
/**
* Indicates that an operation has finished
*
* @param operation
* The operation
* @param success
* true if the operation finished successfuly; false otherwise
*
* @return true if operation was begun; false otherwise.
*/
boolean operationFinished(O operation, boolean success);
}