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