Regenerated invocation service bits.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@613 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2008-06-06 14:39:03 +00:00
parent f663e36fe6
commit 2090bcdfeb
33 changed files with 58 additions and 103 deletions
@@ -21,14 +21,10 @@
package com.threerings.micasa.lobby; package com.threerings.micasa.lobby;
import com.threerings.micasa.lobby.LobbyMarshaller;
import com.threerings.micasa.lobby.LobbyService;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher; import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import java.util.List;
/** /**
* Dispatches requests to the {@link LobbyProvider}. * Dispatches requests to the {@link LobbyProvider}.
@@ -44,13 +40,14 @@ public class LobbyDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new LobbyMarshaller(); return new LobbyMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -21,10 +21,10 @@
package com.threerings.micasa.lobby; package com.threerings.micasa.lobby;
import com.threerings.micasa.lobby.LobbyService;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import java.util.List; import java.util.List;
/** /**
@@ -53,7 +53,7 @@ public class LobbyMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, GOT_CATEGORIES, callerOid, requestId, GOT_CATEGORIES,
new Object[] { arg1 })); new Object[] { arg1 }, transport));
} }
@Override // from InvocationMarshaller @Override // from InvocationMarshaller
@@ -88,7 +88,7 @@ public class LobbyMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, GOT_LOBBIES, callerOid, requestId, GOT_LOBBIES,
new Object[] { arg1 })); new Object[] { arg1 }, transport));
} }
@Override // from InvocationMarshaller @Override // from InvocationMarshaller
@@ -21,12 +21,9 @@
package com.threerings.micasa.lobby; package com.threerings.micasa.lobby;
import com.threerings.micasa.lobby.LobbyService;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; import com.threerings.presents.server.InvocationProvider;
import java.util.List;
/** /**
* Defines the server-side of the {@link LobbyService}. * Defines the server-side of the {@link LobbyService}.
@@ -25,7 +25,7 @@ import com.threerings.micasa.simulator.client.SimulatorService;
import com.threerings.parlor.game.data.GameConfig; import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.net.Transport;
/** /**
* Provides the implementation of the {@link SimulatorService} interface * Provides the implementation of the {@link SimulatorService} interface
@@ -21,10 +21,8 @@
package com.threerings.micasa.simulator.server; package com.threerings.micasa.simulator.server;
import com.threerings.micasa.simulator.client.SimulatorService;
import com.threerings.micasa.simulator.data.SimulatorMarshaller; import com.threerings.micasa.simulator.data.SimulatorMarshaller;
import com.threerings.parlor.game.data.GameConfig; import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher; import com.threerings.presents.server.InvocationDispatcher;
@@ -44,13 +42,14 @@ public class SimulatorDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new SimulatorMarshaller(); return new SimulatorMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -25,7 +25,7 @@ import com.threerings.parlor.card.data.Card;
import com.threerings.parlor.card.trick.client.TrickCardGameService; import com.threerings.parlor.card.trick.client.TrickCardGameService;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.net.Transport;
/** /**
* Provides the implementation of the {@link TrickCardGameService} interface * Provides the implementation of the {@link TrickCardGameService} interface
@@ -22,9 +22,7 @@
package com.threerings.parlor.card.trick.server; package com.threerings.parlor.card.trick.server;
import com.threerings.parlor.card.data.Card; import com.threerings.parlor.card.data.Card;
import com.threerings.parlor.card.trick.client.TrickCardGameService;
import com.threerings.parlor.card.trick.data.TrickCardGameMarshaller; import com.threerings.parlor.card.trick.data.TrickCardGameMarshaller;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher; import com.threerings.presents.server.InvocationDispatcher;
@@ -44,13 +42,14 @@ public class TrickCardGameDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new TrickCardGameMarshaller(); return new TrickCardGameMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -22,10 +22,7 @@
package com.threerings.parlor.card.trick.server; package com.threerings.parlor.card.trick.server;
import com.threerings.parlor.card.data.Card; import com.threerings.parlor.card.data.Card;
import com.threerings.parlor.card.trick.client.TrickCardGameService;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; import com.threerings.presents.server.InvocationProvider;
/** /**
@@ -27,6 +27,7 @@ import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import com.threerings.util.Name; import com.threerings.util.Name;
/** /**
@@ -55,7 +56,7 @@ public class ParlorMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, INVITE_RECEIVED, callerOid, requestId, INVITE_RECEIVED,
new Object[] { Integer.valueOf(arg1) })); new Object[] { Integer.valueOf(arg1) }, transport));
} }
@Override // from InvocationMarshaller @Override // from InvocationMarshaller
@@ -22,12 +22,11 @@
package com.threerings.parlor.data; package com.threerings.parlor.data;
import com.threerings.parlor.client.TableService; import com.threerings.parlor.client.TableService;
import com.threerings.parlor.data.TableConfig;
import com.threerings.parlor.game.data.GameConfig; import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.net.Transport;
/** /**
* Provides the implementation of the {@link TableService} interface * Provides the implementation of the {@link TableService} interface
@@ -24,7 +24,6 @@ package com.threerings.parlor.server;
import com.threerings.parlor.client.ParlorService; import com.threerings.parlor.client.ParlorService;
import com.threerings.parlor.data.ParlorMarshaller; import com.threerings.parlor.data.ParlorMarshaller;
import com.threerings.parlor.game.data.GameConfig; import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
@@ -46,13 +45,14 @@ public class ParlorDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new ParlorMarshaller(); return new ParlorMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -23,7 +23,6 @@ package com.threerings.parlor.server;
import com.threerings.parlor.client.ParlorService; import com.threerings.parlor.client.ParlorService;
import com.threerings.parlor.game.data.GameConfig; import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
@@ -21,11 +21,9 @@
package com.threerings.parlor.server; package com.threerings.parlor.server;
import com.threerings.parlor.client.TableService;
import com.threerings.parlor.data.TableConfig; import com.threerings.parlor.data.TableConfig;
import com.threerings.parlor.data.TableMarshaller; import com.threerings.parlor.data.TableMarshaller;
import com.threerings.parlor.game.data.GameConfig; import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
@@ -46,13 +44,14 @@ public class TableDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new TableMarshaller(); return new TableMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -21,10 +21,8 @@
package com.threerings.parlor.server; package com.threerings.parlor.server;
import com.threerings.parlor.client.TableService;
import com.threerings.parlor.data.TableConfig; import com.threerings.parlor.data.TableConfig;
import com.threerings.parlor.game.data.GameConfig; import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
@@ -25,7 +25,7 @@ import com.threerings.parlor.tourney.client.TourneyService;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.net.Transport;
/** /**
* Provides the implementation of the {@link TourneyService} interface * Provides the implementation of the {@link TourneyService} interface
@@ -22,11 +22,10 @@
package com.threerings.parlor.tourney.data; package com.threerings.parlor.tourney.data;
import com.threerings.parlor.tourney.client.TourniesService; import com.threerings.parlor.tourney.client.TourniesService;
import com.threerings.parlor.tourney.data.TourneyConfig;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.net.Transport;
/** /**
* Provides the implementation of the {@link TourniesService} interface * Provides the implementation of the {@link TourniesService} interface
@@ -21,9 +21,7 @@
package com.threerings.parlor.tourney.server; package com.threerings.parlor.tourney.server;
import com.threerings.parlor.tourney.client.TourneyService;
import com.threerings.parlor.tourney.data.TourneyMarshaller; import com.threerings.parlor.tourney.data.TourneyMarshaller;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
@@ -44,13 +42,14 @@ public class TourneyDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new TourneyMarshaller(); return new TourneyMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -21,8 +21,6 @@
package com.threerings.parlor.tourney.server; package com.threerings.parlor.tourney.server;
import com.threerings.parlor.tourney.client.TourneyService;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
@@ -21,10 +21,8 @@
package com.threerings.parlor.tourney.server; package com.threerings.parlor.tourney.server;
import com.threerings.parlor.tourney.client.TourniesService;
import com.threerings.parlor.tourney.data.TourneyConfig; import com.threerings.parlor.tourney.data.TourneyConfig;
import com.threerings.parlor.tourney.data.TourniesMarshaller; import com.threerings.parlor.tourney.data.TourniesMarshaller;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
@@ -45,13 +43,14 @@ public class TourniesDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new TourniesMarshaller(); return new TourniesMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -21,9 +21,7 @@
package com.threerings.parlor.tourney.server; package com.threerings.parlor.tourney.server;
import com.threerings.parlor.tourney.client.TourniesService;
import com.threerings.parlor.tourney.data.TourneyConfig; import com.threerings.parlor.tourney.data.TourneyConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
@@ -23,9 +23,8 @@ package com.threerings.puzzle.data;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.net.Transport;
import com.threerings.puzzle.client.PuzzleGameService; import com.threerings.puzzle.client.PuzzleGameService;
import com.threerings.puzzle.data.Board;
/** /**
* Provides the implementation of the {@link PuzzleGameService} interface * Provides the implementation of the {@link PuzzleGameService} interface
@@ -21,12 +21,10 @@
package com.threerings.puzzle.server; package com.threerings.puzzle.server;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher; import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.puzzle.client.PuzzleGameService;
import com.threerings.puzzle.data.Board; import com.threerings.puzzle.data.Board;
import com.threerings.puzzle.data.PuzzleGameMarshaller; import com.threerings.puzzle.data.PuzzleGameMarshaller;
@@ -44,13 +42,14 @@ public class PuzzleGameDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new PuzzleGameMarshaller(); return new PuzzleGameMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -21,11 +21,8 @@
package com.threerings.puzzle.server; package com.threerings.puzzle.server;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; import com.threerings.presents.server.InvocationProvider;
import com.threerings.puzzle.client.PuzzleGameService;
import com.threerings.puzzle.data.Board; import com.threerings.puzzle.data.Board;
/** /**
@@ -25,7 +25,7 @@ import com.threerings.miso.data.ObjectInfo;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.net.Transport;
import com.threerings.stage.client.StageSceneService; import com.threerings.stage.client.StageSceneService;
/** /**
@@ -22,13 +22,11 @@
package com.threerings.stage.server; package com.threerings.stage.server;
import com.threerings.miso.data.ObjectInfo; import com.threerings.miso.data.ObjectInfo;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher; import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.stage.client.StageSceneService;
import com.threerings.stage.data.StageSceneMarshaller; import com.threerings.stage.data.StageSceneMarshaller;
/** /**
@@ -45,13 +43,14 @@ public class StageSceneDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new StageSceneMarshaller(); return new StageSceneMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -22,12 +22,10 @@
package com.threerings.stage.server; package com.threerings.stage.server;
import com.threerings.miso.data.ObjectInfo; import com.threerings.miso.data.ObjectInfo;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; import com.threerings.presents.server.InvocationProvider;
import com.threerings.stage.client.StageSceneService;
/** /**
* Defines the server-side of the {@link StageSceneService}. * Defines the server-side of the {@link StageSceneService}.
@@ -25,9 +25,8 @@ import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import com.threerings.whirled.client.SceneService; import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
/** /**
* Provides the implementation of the {@link SceneService} interface * Provides the implementation of the {@link SceneService} interface
@@ -55,7 +54,7 @@ public class SceneMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_REQUIRES_SERVER_SWITCH, callerOid, requestId, MOVE_REQUIRES_SERVER_SWITCH,
new Object[] { arg1, arg2 })); new Object[] { arg1, arg2 }, transport));
} }
/** The method id used to dispatch {@link #moveSucceeded} /** The method id used to dispatch {@link #moveSucceeded}
@@ -68,7 +67,7 @@ public class SceneMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED, callerOid, requestId, MOVE_SUCCEEDED,
new Object[] { Integer.valueOf(arg1), arg2 })); new Object[] { Integer.valueOf(arg1), arg2 }, transport));
} }
/** The method id used to dispatch {@link #moveSucceededWithScene} /** The method id used to dispatch {@link #moveSucceededWithScene}
@@ -81,7 +80,7 @@ public class SceneMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE, callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE,
new Object[] { Integer.valueOf(arg1), arg2, arg3 })); new Object[] { Integer.valueOf(arg1), arg2, arg3 }, transport));
} }
/** The method id used to dispatch {@link #moveSucceededWithUpdates} /** The method id used to dispatch {@link #moveSucceededWithUpdates}
@@ -94,7 +93,7 @@ public class SceneMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES, callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES,
new Object[] { Integer.valueOf(arg1), arg2, arg3 })); new Object[] { Integer.valueOf(arg1), arg2, arg3 }, transport));
} }
@Override // from InvocationMarshaller @Override // from InvocationMarshaller
@@ -21,16 +21,12 @@
package com.threerings.whirled.server; package com.threerings.whirled.server;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher; import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.whirled.client.SceneService; import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneMarshaller; import com.threerings.whirled.data.SceneMarshaller;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
/** /**
* Dispatches requests to the {@link SceneProvider}. * Dispatches requests to the {@link SceneProvider}.
@@ -46,13 +42,14 @@ public class SceneDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new SceneMarshaller(); return new SceneMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -21,14 +21,10 @@
package com.threerings.whirled.server; package com.threerings.whirled.server;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; import com.threerings.presents.server.InvocationProvider;
import com.threerings.whirled.client.SceneService; import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
/** /**
* Defines the server-side of the {@link SceneService}. * Defines the server-side of the {@link SceneService}.
@@ -24,11 +24,10 @@ package com.threerings.whirled.spot.data;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.net.Transport;
import com.threerings.whirled.client.SceneService; import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneMarshaller; import com.threerings.whirled.data.SceneMarshaller;
import com.threerings.whirled.spot.client.SpotService; import com.threerings.whirled.spot.client.SpotService;
import com.threerings.whirled.spot.data.Location;
/** /**
* Provides the implementation of the {@link SpotService} interface * Provides the implementation of the {@link SpotService} interface
@@ -21,15 +21,12 @@
package com.threerings.whirled.spot.server; package com.threerings.whirled.spot.server;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher; import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.whirled.client.SceneService; import com.threerings.whirled.client.SceneService;
import com.threerings.whirled.data.SceneMarshaller;
import com.threerings.whirled.spot.client.SpotService;
import com.threerings.whirled.spot.data.Location; import com.threerings.whirled.spot.data.Location;
import com.threerings.whirled.spot.data.SpotMarshaller; import com.threerings.whirled.spot.data.SpotMarshaller;
@@ -47,13 +44,14 @@ public class SpotDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new SpotMarshaller(); return new SpotMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -25,10 +25,10 @@ import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client; import com.threerings.presents.client.Client;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent; import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.net.Transport;
import com.threerings.whirled.data.SceneModel; import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate; import com.threerings.whirled.data.SceneUpdate;
import com.threerings.whirled.zone.client.ZoneService; import com.threerings.whirled.zone.client.ZoneService;
import com.threerings.whirled.zone.data.ZoneSummary;
/** /**
* Provides the implementation of the {@link ZoneService} interface * Provides the implementation of the {@link ZoneService} interface
@@ -56,7 +56,7 @@ public class ZoneMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED, callerOid, requestId, MOVE_SUCCEEDED,
new Object[] { Integer.valueOf(arg1), arg2, arg3 })); new Object[] { Integer.valueOf(arg1), arg2, arg3 }, transport));
} }
/** The method id used to dispatch {@link #moveSucceededWithScene} /** The method id used to dispatch {@link #moveSucceededWithScene}
@@ -69,7 +69,7 @@ public class ZoneMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE, callerOid, requestId, MOVE_SUCCEEDED_WITH_SCENE,
new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 })); new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 }, transport));
} }
/** The method id used to dispatch {@link #moveSucceededWithUpdates} /** The method id used to dispatch {@link #moveSucceededWithUpdates}
@@ -82,7 +82,7 @@ public class ZoneMarshaller extends InvocationMarshaller
_invId = null; _invId = null;
omgr.postEvent(new InvocationResponseEvent( omgr.postEvent(new InvocationResponseEvent(
callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES, callerOid, requestId, MOVE_SUCCEEDED_WITH_UPDATES,
new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 })); new Object[] { Integer.valueOf(arg1), arg2, arg3, arg4 }, transport));
} }
@Override // from InvocationMarshaller @Override // from InvocationMarshaller
@@ -21,17 +21,12 @@
package com.threerings.whirled.zone.server; package com.threerings.whirled.zone.server;
import com.threerings.crowd.data.PlaceConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.data.InvocationMarshaller; import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.server.InvocationDispatcher; import com.threerings.presents.server.InvocationDispatcher;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.data.SceneUpdate;
import com.threerings.whirled.zone.client.ZoneService; import com.threerings.whirled.zone.client.ZoneService;
import com.threerings.whirled.zone.data.ZoneMarshaller; import com.threerings.whirled.zone.data.ZoneMarshaller;
import com.threerings.whirled.zone.data.ZoneSummary;
/** /**
* Dispatches requests to the {@link ZoneProvider}. * Dispatches requests to the {@link ZoneProvider}.
@@ -47,13 +42,14 @@ public class ZoneDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// from InvocationDispatcher @Override // documentation inherited
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new ZoneMarshaller(); return new ZoneMarshaller();
} }
@SuppressWarnings("unchecked") // from InvocationDispatcher @SuppressWarnings("unchecked")
@Override // documentation inherited
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException