Type the marshaller and associated registry methods so that we don't have to

downcast every time we register an invocation service provider.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5201 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-06-29 12:36:21 +00:00
parent d9cdb5ae3b
commit 8d6635e8e0
8 changed files with 18 additions and 23 deletions
@@ -22,7 +22,6 @@
package com.threerings.presents.peer.server;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.peer.data.NodeObject;
import com.threerings.presents.peer.data.PeerMarshaller;
import com.threerings.presents.server.InvocationDispatcher;
@@ -31,7 +30,7 @@ import com.threerings.presents.server.InvocationException;
/**
* Dispatches requests to the {@link PeerProvider}.
*/
public class PeerDispatcher extends InvocationDispatcher
public class PeerDispatcher extends InvocationDispatcher<PeerMarshaller>
{
/**
* Creates a dispatcher that may be registered to dispatch invocation
@@ -43,7 +42,7 @@ public class PeerDispatcher extends InvocationDispatcher
}
@Override // documentation inherited
public InvocationMarshaller createMarshaller ()
public PeerMarshaller createMarshaller ()
{
return new PeerMarshaller();
}