]> gerrit.simantics Code Review - simantics/platform.git/blob - IOperationListener.java
7befeb96ba63223ac8fb85fcc276bd8d7c464999
[simantics/platform.git] / IOperationListener.java
1 package org.simantics.utils;
2 /**
3  * Listener that can be added to IOperation.
4  * 
5  * @author Hannu Niemistö
6  */
7 public interface IOperationListener<Result, E extends Exception> {
8
9     /**
10      * Called when the operation succeeds.
11      */
12     void succeeded(Result result);
13
14     /**
15      * Called when the operation fails.
16      */
17     void failed(E exception);
18
19 }