Change the default behavior of handleSuccess: if the listener

is a ConfirmListener, do it! Hopefully this doesn't fork anything up.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5636 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2009-01-17 02:21:44 +00:00
parent b2b8f57454
commit 46e048ab4a
@@ -72,10 +72,14 @@ public abstract class PersistingUnit extends Invoker.Unit
throws Exception;
/**
* Handles the success case, which by default is to do nothing.
* Handles the success case, which by default posts a response to a ConfirmListener.
* If you need something else, or to repond to a ResultListener, you'll need to override this.
*/
public void handleSuccess ()
{
if (_listener instanceof InvocationService.ConfirmListener) {
reportRequestProcessed();
}
}
/**