A no-op ResultListener, useful on certain occasions.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1504 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2004-09-21 02:34:11 +00:00
parent 50f0b75408
commit 35f9b6cc1d
@@ -47,4 +47,13 @@ public interface ResultListener
* reason for failure.
*/
public void requestFailed (Exception cause);
/** Useful when you want to allow optional result listeners but don't
* want to have to check before calling. */
public static final ResultListener NOOP = new ResultListener() {
public void requestCompleted (Object result) {
}
public void requestFailed (Exception cause) {
}
};
}