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:
@@ -72,6 +72,7 @@ import com.threerings.presents.peer.client.PeerService;
|
||||
import com.threerings.presents.peer.data.ClientInfo;
|
||||
import com.threerings.presents.peer.data.NodeObject;
|
||||
import com.threerings.presents.peer.data.PeerAuthName;
|
||||
import com.threerings.presents.peer.data.PeerMarshaller;
|
||||
import com.threerings.presents.peer.net.PeerCreds;
|
||||
import com.threerings.presents.peer.server.persist.NodeRecord;
|
||||
import com.threerings.presents.peer.server.persist.NodeRepository;
|
||||
@@ -319,7 +320,7 @@ public abstract class PeerManager
|
||||
});
|
||||
|
||||
// set the invocation service
|
||||
_nodeobj.setPeerService(_invmgr.registerDispatcher(new PeerDispatcher(this)));
|
||||
_nodeobj.setPeerService(_invmgr.registerProvider(this, PeerMarshaller.class));
|
||||
|
||||
// register ourselves as a client observer
|
||||
_clmgr.addClientObserver(this);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user