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:
@@ -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) {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user