diff --git a/src/java/com/samskivert/util/ResultListener.java b/src/java/com/samskivert/util/ResultListener.java index d2c2162c..174b8702 100644 --- a/src/java/com/samskivert/util/ResultListener.java +++ b/src/java/com/samskivert/util/ResultListener.java @@ -36,6 +36,15 @@ package com.samskivert.util; */ public interface ResultListener { + /** A result listener that does nothing for cases where that is an + * appropriate behavior. */ + public static class NOOP implements ResultListener { + public void requestCompleted (T result) { + } + public void requestFailed (Exception cause) { + } + }; + /** * Called to communicate that the request succeeded and that the * result is available.