diff --git a/src/main/java/com/threerings/admin/server/AdminDispatcher.java b/src/main/java/com/threerings/admin/server/AdminDispatcher.java deleted file mode 100644 index fd6666315..000000000 --- a/src/main/java/com/threerings/admin/server/AdminDispatcher.java +++ /dev/null @@ -1,71 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.admin.server; - -import javax.annotation.Generated; - -import com.threerings.admin.client.AdminService; -import com.threerings.admin.data.AdminMarshaller; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.server.InvocationDispatcher; -import com.threerings.presents.server.InvocationException; - -/** - * Dispatches requests to the {@link AdminProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from AdminService.java.") -public class AdminDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public AdminDispatcher (AdminProvider provider) - { - this.provider = provider; - } - - @Override - public AdminMarshaller createMarshaller () - { - return new AdminMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case AdminMarshaller.GET_CONFIG_INFO: - ((AdminProvider)provider).getConfigInfo( - source, (AdminService.ConfigInfoListener)args[0] - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/bureau/server/BureauDispatcher.java b/src/main/java/com/threerings/bureau/server/BureauDispatcher.java deleted file mode 100644 index 432e41405..000000000 --- a/src/main/java/com/threerings/bureau/server/BureauDispatcher.java +++ /dev/null @@ -1,94 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.bureau.server; - -import javax.annotation.Generated; - -import com.threerings.bureau.data.BureauMarshaller; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.server.InvocationDispatcher; -import com.threerings.presents.server.InvocationException; - -/** - * Dispatches requests to the {@link BureauProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from BureauService.java.") -public class BureauDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public BureauDispatcher (BureauProvider provider) - { - this.provider = provider; - } - - @Override - public BureauMarshaller createMarshaller () - { - return new BureauMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case BureauMarshaller.AGENT_CREATED: - ((BureauProvider)provider).agentCreated( - source, ((Integer)args[0]).intValue() - ); - return; - - case BureauMarshaller.AGENT_CREATION_FAILED: - ((BureauProvider)provider).agentCreationFailed( - source, ((Integer)args[0]).intValue() - ); - return; - - case BureauMarshaller.AGENT_DESTROYED: - ((BureauProvider)provider).agentDestroyed( - source, ((Integer)args[0]).intValue() - ); - return; - - case BureauMarshaller.BUREAU_ERROR: - ((BureauProvider)provider).bureauError( - source, (String)args[0] - ); - return; - - case BureauMarshaller.BUREAU_INITIALIZED: - ((BureauProvider)provider).bureauInitialized( - source, (String)args[0] - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/crowd/chat/server/ChannelSpeakDispatcher.java b/src/main/java/com/threerings/crowd/chat/server/ChannelSpeakDispatcher.java deleted file mode 100644 index 051b89c59..000000000 --- a/src/main/java/com/threerings/crowd/chat/server/ChannelSpeakDispatcher.java +++ /dev/null @@ -1,71 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.crowd.chat.server; - -import javax.annotation.Generated; - -import com.threerings.crowd.chat.data.ChannelSpeakMarshaller; -import com.threerings.crowd.chat.data.ChatChannel; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.server.InvocationDispatcher; -import com.threerings.presents.server.InvocationException; - -/** - * Dispatches requests to the {@link ChannelSpeakProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from ChannelSpeakService.java.") -public class ChannelSpeakDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public ChannelSpeakDispatcher (ChannelSpeakProvider provider) - { - this.provider = provider; - } - - @Override - public ChannelSpeakMarshaller createMarshaller () - { - return new ChannelSpeakMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case ChannelSpeakMarshaller.SPEAK: - ((ChannelSpeakProvider)provider).speak( - source, (ChatChannel)args[0], (String)args[1], ((Byte)args[2]).byteValue() - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/crowd/chat/server/ChatDispatcher.java b/src/main/java/com/threerings/crowd/chat/server/ChatDispatcher.java deleted file mode 100644 index 9b00578e6..000000000 --- a/src/main/java/com/threerings/crowd/chat/server/ChatDispatcher.java +++ /dev/null @@ -1,85 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.crowd.chat.server; - -import javax.annotation.Generated; - -import com.threerings.crowd.chat.client.ChatService; -import com.threerings.crowd.chat.data.ChatMarshaller; -import com.threerings.presents.client.InvocationService; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.server.InvocationDispatcher; -import com.threerings.presents.server.InvocationException; -import com.threerings.util.Name; - -/** - * Dispatches requests to the {@link ChatProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from ChatService.java.") -public class ChatDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public ChatDispatcher (ChatProvider provider) - { - this.provider = provider; - } - - @Override - public ChatMarshaller createMarshaller () - { - return new ChatMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case ChatMarshaller.AWAY: - ((ChatProvider)provider).away( - source, (String)args[0] - ); - return; - - case ChatMarshaller.BROADCAST: - ((ChatProvider)provider).broadcast( - source, (String)args[0], (InvocationService.InvocationListener)args[1] - ); - return; - - case ChatMarshaller.TELL: - ((ChatProvider)provider).tell( - source, (Name)args[0], (String)args[1], (ChatService.TellListener)args[2] - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/crowd/chat/server/SpeakDispatcher.java b/src/main/java/com/threerings/crowd/chat/server/SpeakDispatcher.java deleted file mode 100644 index 3d52cfa37..000000000 --- a/src/main/java/com/threerings/crowd/chat/server/SpeakDispatcher.java +++ /dev/null @@ -1,70 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.crowd.chat.server; - -import javax.annotation.Generated; - -import com.threerings.crowd.chat.data.SpeakMarshaller; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.server.InvocationDispatcher; -import com.threerings.presents.server.InvocationException; - -/** - * Dispatches requests to the {@link SpeakProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from SpeakService.java.") -public class SpeakDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public SpeakDispatcher (SpeakProvider provider) - { - this.provider = provider; - } - - @Override - public SpeakMarshaller createMarshaller () - { - return new SpeakMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case SpeakMarshaller.SPEAK: - ((SpeakProvider)provider).speak( - source, (String)args[0], ((Byte)args[1]).byteValue() - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/crowd/peer/server/CrowdPeerDispatcher.java b/src/main/java/com/threerings/crowd/peer/server/CrowdPeerDispatcher.java deleted file mode 100644 index eb6de626a..000000000 --- a/src/main/java/com/threerings/crowd/peer/server/CrowdPeerDispatcher.java +++ /dev/null @@ -1,79 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.crowd.peer.server; - -import javax.annotation.Generated; - -import com.threerings.crowd.chat.client.ChatService; -import com.threerings.crowd.chat.data.UserMessage; -import com.threerings.crowd.peer.data.CrowdPeerMarshaller; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.server.InvocationDispatcher; -import com.threerings.presents.server.InvocationException; -import com.threerings.util.Name; - -/** - * Dispatches requests to the {@link CrowdPeerProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from CrowdPeerService.java.") -public class CrowdPeerDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public CrowdPeerDispatcher (CrowdPeerProvider provider) - { - this.provider = provider; - } - - @Override - public CrowdPeerMarshaller createMarshaller () - { - return new CrowdPeerMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case CrowdPeerMarshaller.DELIVER_BROADCAST: - ((CrowdPeerProvider)provider).deliverBroadcast( - source, (Name)args[0], ((Byte)args[1]).byteValue(), (String)args[2], (String)args[3] - ); - return; - - case CrowdPeerMarshaller.DELIVER_TELL: - ((CrowdPeerProvider)provider).deliverTell( - source, (UserMessage)args[0], (Name)args[1], (ChatService.TellListener)args[2] - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/crowd/server/BodyDispatcher.java b/src/main/java/com/threerings/crowd/server/BodyDispatcher.java deleted file mode 100644 index 34b576778..000000000 --- a/src/main/java/com/threerings/crowd/server/BodyDispatcher.java +++ /dev/null @@ -1,70 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.crowd.server; - -import javax.annotation.Generated; - -import com.threerings.crowd.data.BodyMarshaller; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.server.InvocationDispatcher; -import com.threerings.presents.server.InvocationException; - -/** - * Dispatches requests to the {@link BodyProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from BodyService.java.") -public class BodyDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public BodyDispatcher (BodyProvider provider) - { - this.provider = provider; - } - - @Override - public BodyMarshaller createMarshaller () - { - return new BodyMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case BodyMarshaller.SET_IDLE: - ((BodyProvider)provider).setIdle( - source, ((Boolean)args[0]).booleanValue() - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/crowd/server/LocationDispatcher.java b/src/main/java/com/threerings/crowd/server/LocationDispatcher.java deleted file mode 100644 index 305f6f5cb..000000000 --- a/src/main/java/com/threerings/crowd/server/LocationDispatcher.java +++ /dev/null @@ -1,77 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.crowd.server; - -import javax.annotation.Generated; - -import com.threerings.crowd.client.LocationService; -import com.threerings.crowd.data.LocationMarshaller; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.server.InvocationDispatcher; -import com.threerings.presents.server.InvocationException; - -/** - * Dispatches requests to the {@link LocationProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from LocationService.java.") -public class LocationDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public LocationDispatcher (LocationProvider provider) - { - this.provider = provider; - } - - @Override - public LocationMarshaller createMarshaller () - { - return new LocationMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case LocationMarshaller.LEAVE_PLACE: - ((LocationProvider)provider).leavePlace( - source - ); - return; - - case LocationMarshaller.MOVE_TO: - ((LocationProvider)provider).moveTo( - source, ((Integer)args[0]).intValue(), (LocationService.MoveListener)args[1] - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/crowd/server/PlaceManager.java b/src/main/java/com/threerings/crowd/server/PlaceManager.java index 50de7187a..efb37acf2 100644 --- a/src/main/java/com/threerings/crowd/server/PlaceManager.java +++ b/src/main/java/com/threerings/crowd/server/PlaceManager.java @@ -55,7 +55,6 @@ import com.threerings.presents.server.InvocationProvider; import com.threerings.crowd.chat.data.ChatCodes; import com.threerings.crowd.chat.data.SpeakMarshaller; -import com.threerings.crowd.chat.server.SpeakDispatcher; import com.threerings.crowd.chat.server.SpeakHandler; import com.threerings.crowd.data.BodyObject; import com.threerings.crowd.data.OccupantInfo; diff --git a/src/main/java/com/threerings/presents/peer/server/PeerDispatcher.java b/src/main/java/com/threerings/presents/peer/server/PeerDispatcher.java deleted file mode 100644 index d722a6952..000000000 --- a/src/main/java/com/threerings/presents/peer/server/PeerDispatcher.java +++ /dev/null @@ -1,90 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.presents.peer.server; - -import javax.annotation.Generated; - -import com.threerings.presents.client.InvocationService; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.peer.data.NodeObject; -import com.threerings.presents.peer.data.PeerMarshaller; -import com.threerings.presents.server.InvocationDispatcher; -import com.threerings.presents.server.InvocationException; - -/** - * Dispatches requests to the {@link PeerProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from PeerService.java.") -public class PeerDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public PeerDispatcher (PeerProvider provider) - { - this.provider = provider; - } - - @Override - public PeerMarshaller createMarshaller () - { - return new PeerMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case PeerMarshaller.GENERATE_REPORT: - ((PeerProvider)provider).generateReport( - source, (String)args[0], (InvocationService.ResultListener)args[1] - ); - return; - - case PeerMarshaller.INVOKE_ACTION: - ((PeerProvider)provider).invokeAction( - source, (byte[])args[0] - ); - return; - - case PeerMarshaller.INVOKE_REQUEST: - ((PeerProvider)provider).invokeRequest( - source, (byte[])args[0], (InvocationService.ResultListener)args[1] - ); - return; - - case PeerMarshaller.RATIFY_LOCK_ACTION: - ((PeerProvider)provider).ratifyLockAction( - source, (NodeObject.Lock)args[0], ((Boolean)args[1]).booleanValue() - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/presents/server/RegistrationDispatcher.java b/src/main/java/com/threerings/presents/server/RegistrationDispatcher.java deleted file mode 100644 index f97150174..000000000 --- a/src/main/java/com/threerings/presents/server/RegistrationDispatcher.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.threerings.presents.server; - -import javax.annotation.Generated; - -import com.threerings.presents.client.InvocationReceiver; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.data.RegistrationMarshaller; - -/** - * Dispatches requests to the {@link RegistrationProvider}. - */ -@Generated(value={"com.threerings.presents.tools.cpp.GenCPPServiceTask"}, - comments="Derived from RegistrationService.java.") -public class RegistrationDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public RegistrationDispatcher (RegistrationProvider provider) - { - this.provider = provider; - } - - @Override - public RegistrationMarshaller createMarshaller () - { - return new RegistrationMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case RegistrationMarshaller.REGISTER_RECEIVER: - ((RegistrationProvider)provider).registerReceiver( - source, (InvocationReceiver.Registration)args[0] - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/main/java/com/threerings/presents/server/TimeBaseDispatcher.java b/src/main/java/com/threerings/presents/server/TimeBaseDispatcher.java deleted file mode 100644 index dd79a5d17..000000000 --- a/src/main/java/com/threerings/presents/server/TimeBaseDispatcher.java +++ /dev/null @@ -1,69 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.presents.server; - -import javax.annotation.Generated; - -import com.threerings.presents.client.TimeBaseService; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.data.TimeBaseMarshaller; - -/** - * Dispatches requests to the {@link TimeBaseProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from TimeBaseService.java.") -public class TimeBaseDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public TimeBaseDispatcher (TimeBaseProvider provider) - { - this.provider = provider; - } - - @Override - public TimeBaseMarshaller createMarshaller () - { - return new TimeBaseMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case TimeBaseMarshaller.GET_TIME_OID: - ((TimeBaseProvider)provider).getTimeOid( - source, (String)args[0], (TimeBaseService.GotTimeBaseListener)args[1] - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -} diff --git a/src/test/java/com/threerings/presents/server/TestDispatcher.java b/src/test/java/com/threerings/presents/server/TestDispatcher.java deleted file mode 100644 index 927137f55..000000000 --- a/src/test/java/com/threerings/presents/server/TestDispatcher.java +++ /dev/null @@ -1,83 +0,0 @@ -// -// $Id$ -// -// Narya library - tools for developing networked games -// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved -// http://code.google.com/p/narya/ -// -// This library is free software; you can redistribute it and/or modify it -// under the terms of the GNU Lesser General Public License as published -// by the Free Software Foundation; either version 2.1 of the License, or -// (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -package com.threerings.presents.server; - -import javax.annotation.Generated; - -import com.threerings.presents.client.InvocationService; -import com.threerings.presents.client.TestService; -import com.threerings.presents.data.ClientObject; -import com.threerings.presents.data.TestMarshaller; -import java.util.List; - -/** - * Dispatches requests to the {@link TestProvider}. - */ -@Generated(value={"com.threerings.presents.tools.GenServiceTask"}, - comments="Derived from TestService.java.") -public class TestDispatcher extends InvocationDispatcher -{ - /** - * Creates a dispatcher that may be registered to dispatch invocation - * service requests for the specified provider. - */ - public TestDispatcher (TestProvider provider) - { - this.provider = provider; - } - - @Override - public TestMarshaller createMarshaller () - { - return new TestMarshaller(); - } - - @Override - public void dispatchRequest ( - ClientObject source, int methodId, Object[] args) - throws InvocationException - { - switch (methodId) { - case TestMarshaller.GET_TEST_OID: - ((TestProvider)provider).getTestOid( - source, (TestService.TestOidListener)args[0] - ); - return; - - case TestMarshaller.GIVE_ME_THE_POWER: - ((TestProvider)provider).giveMeThePower( - source, (InvocationService.ConfirmListener)args[0] - ); - return; - - case TestMarshaller.TEST: - ((TestProvider)provider).test( - source, (String)args[0], ((Integer)args[1]).intValue(), this.>cast(args[2]), (TestService.TestFuncListener)args[3] - ); - return; - - default: - super.dispatchRequest(source, methodId, args); - return; - } - } -}