--- /dev/null
+package org.simantics.utils;\r
+/**\r
+ * Listener that can be added to IOperation.\r
+ * \r
+ * @author Hannu Niemistö\r
+ */\r
+public interface IOperationListener<Result, E extends Exception> {\r
+\r
+ /**\r
+ * Called when the operation succeeds.\r
+ */\r
+ void succeeded(Result result);\r
+\r
+ /**\r
+ * Called when the operation fails.\r
+ */\r
+ void failed(E exception);\r
+\r
+}
\ No newline at end of file