Switched providers to new dynamic dispatching.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6404 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2011-01-01 01:31:20 +00:00
parent 5a67aa906b
commit f8c7241f9f
12 changed files with 53 additions and 17 deletions
@@ -25,9 +25,10 @@ import java.util.HashMap;
import com.google.common.collect.Maps;
import com.threerings.presents.client.TimeBaseService.GotTimeBaseListener;
import com.threerings.presents.client.TimeBaseService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.TimeBaseCodes;
import com.threerings.presents.data.TimeBaseMarshaller;
import com.threerings.presents.data.TimeBaseObject;
import com.threerings.presents.dobj.RootDObjectManager;
@@ -50,7 +51,7 @@ public class TimeBaseProvider
_omgr = omgr;
// register a provider instance
invmgr.registerDispatcher(new TimeBaseDispatcher(new TimeBaseProvider()), GLOBAL_GROUP);
invmgr.registerProvider(new TimeBaseProvider(), TimeBaseMarshaller.class, GLOBAL_GROUP);
}
/**
@@ -80,7 +81,8 @@ public class TimeBaseProvider
/**
* Processes a request from a client to fetch the oid of the specified time object.
*/
public void getTimeOid (ClientObject source, String timeBase, GotTimeBaseListener listener)
public void getTimeOid (ClientObject source, String timeBase,
TimeBaseService.GotTimeBaseListener listener)
throws InvocationException
{
// look up the time base object in question