Created a ResultAdapter... but called it ResultWrapper.

There is already a ResultAdapter in util/ that adapts an
invocation service ResultListener into a com.samskivert.util.ResultListener.

Flash can't cope with two classes of the same name in the same library
module, so I named my adapter *Wrapper. For consistency it would be nice
if these were the same in ActionScript and Java, so maybe we'll end up
just renaming the one in util/.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4354 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-09-01 01:10:24 +00:00
parent 8f958e2505
commit 1461dc1ccc
@@ -0,0 +1,21 @@
package com.threerings.presents.client {
public class ResultWrapper extends InvocationAdapter
implements InvocationService_ResultListener
{
public function ResultWrapper (
failed :Function, processed :Function = null)
{
super(failed);
_processed = processed;
}
// documentation inherited from interface ResultListener
public function requestProcessed (result :Object) :void
{
_processed(result);
}
protected var _processed :Function;
}
}