Regenerated with updated Marshaller and Dispatcher templates.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4398 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-10-04 18:13:34 +00:00
parent d25d5e53f1
commit 20c0f0ff3d
14 changed files with 44 additions and 43 deletions
@@ -36,7 +36,9 @@ import com.threerings.presents.dobj.InvocationResponseEvent;
public class AdminMarshaller extends InvocationMarshaller public class AdminMarshaller extends InvocationMarshaller
implements AdminService implements AdminService
{ {
// documentation inherited /**
* Marshalls results to implementations of {@link ConfigInfoListener}.
*/
public static class ConfigInfoMarshaller extends ListenerMarshaller public static class ConfigInfoMarshaller extends ListenerMarshaller
implements ConfigInfoListener implements ConfigInfoListener
{ {
@@ -44,7 +46,7 @@ public class AdminMarshaller extends InvocationMarshaller
* responses. */ * responses. */
public static final int GOT_CONFIG_INFO = 1; public static final int GOT_CONFIG_INFO = 1;
// documentation inherited from interface // from interface ConfigInfoMarshaller
public void gotConfigInfo (String[] arg1, int[] arg2) public void gotConfigInfo (String[] arg1, int[] arg2)
{ {
_invId = null; _invId = null;
@@ -53,7 +55,7 @@ public class AdminMarshaller extends InvocationMarshaller
new Object[] { arg1, arg2 })); new Object[] { arg1, arg2 }));
} }
// documentation inherited @Override // from InvocationMarshaller
public void dispatchResponse (int methodId, Object[] args) public void dispatchResponse (int methodId, Object[] args)
{ {
switch (methodId) { switch (methodId) {
@@ -72,7 +74,7 @@ public class AdminMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #getConfigInfo} requests. */ /** The method id used to dispatch {@link #getConfigInfo} requests. */
public static final int GET_CONFIG_INFO = 1; public static final int GET_CONFIG_INFO = 1;
// documentation inherited from interface // from interface AdminService
public void getConfigInfo (Client arg1, AdminService.ConfigInfoListener arg2) public void getConfigInfo (Client arg1, AdminService.ConfigInfoListener arg2)
{ {
AdminMarshaller.ConfigInfoMarshaller listener2 = new AdminMarshaller.ConfigInfoMarshaller(); AdminMarshaller.ConfigInfoMarshaller listener2 = new AdminMarshaller.ConfigInfoMarshaller();
@@ -81,5 +83,4 @@ public class AdminMarshaller extends InvocationMarshaller
listener2 listener2
}); });
} }
} }
@@ -43,13 +43,13 @@ public class AdminDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// documentation inherited // from InvocationDispatcher
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new AdminMarshaller(); return new AdminMarshaller();
} }
// documentation inherited @SuppressWarnings("unchecked") // from InvocationDispatcher
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -38,7 +38,9 @@ import com.threerings.util.Name;
public class ChatMarshaller extends InvocationMarshaller public class ChatMarshaller extends InvocationMarshaller
implements ChatService implements ChatService
{ {
// documentation inherited /**
* Marshalls results to implementations of {@link TellListener}.
*/
public static class TellMarshaller extends ListenerMarshaller public static class TellMarshaller extends ListenerMarshaller
implements TellListener implements TellListener
{ {
@@ -46,7 +48,7 @@ public class ChatMarshaller extends InvocationMarshaller
* responses. */ * responses. */
public static final int TELL_SUCCEEDED = 1; public static final int TELL_SUCCEEDED = 1;
// documentation inherited from interface // from interface TellMarshaller
public void tellSucceeded (long arg1, String arg2) public void tellSucceeded (long arg1, String arg2)
{ {
_invId = null; _invId = null;
@@ -55,7 +57,7 @@ public class ChatMarshaller extends InvocationMarshaller
new Object[] { Long.valueOf(arg1), arg2 })); new Object[] { Long.valueOf(arg1), arg2 }));
} }
// documentation inherited @Override // from InvocationMarshaller
public void dispatchResponse (int methodId, Object[] args) public void dispatchResponse (int methodId, Object[] args)
{ {
switch (methodId) { switch (methodId) {
@@ -74,7 +76,7 @@ public class ChatMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #away} requests. */ /** The method id used to dispatch {@link #away} requests. */
public static final int AWAY = 1; public static final int AWAY = 1;
// documentation inherited from interface // from interface ChatService
public void away (Client arg1, String arg2) public void away (Client arg1, String arg2)
{ {
sendRequest(arg1, AWAY, new Object[] { sendRequest(arg1, AWAY, new Object[] {
@@ -85,7 +87,7 @@ public class ChatMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #broadcast} requests. */ /** The method id used to dispatch {@link #broadcast} requests. */
public static final int BROADCAST = 2; public static final int BROADCAST = 2;
// documentation inherited from interface // from interface ChatService
public void broadcast (Client arg1, String arg2, InvocationService.InvocationListener arg3) public void broadcast (Client arg1, String arg2, InvocationService.InvocationListener arg3)
{ {
ListenerMarshaller listener3 = new ListenerMarshaller(); ListenerMarshaller listener3 = new ListenerMarshaller();
@@ -98,7 +100,7 @@ public class ChatMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #tell} requests. */ /** The method id used to dispatch {@link #tell} requests. */
public static final int TELL = 3; public static final int TELL = 3;
// documentation inherited from interface // from interface ChatService
public void tell (Client arg1, Name arg2, String arg3, ChatService.TellListener arg4) public void tell (Client arg1, Name arg2, String arg3, ChatService.TellListener arg4)
{ {
ChatMarshaller.TellMarshaller listener4 = new ChatMarshaller.TellMarshaller(); ChatMarshaller.TellMarshaller listener4 = new ChatMarshaller.TellMarshaller();
@@ -107,5 +109,4 @@ public class ChatMarshaller extends InvocationMarshaller
arg2, arg3, listener4 arg2, arg3, listener4
}); });
} }
} }
@@ -39,12 +39,11 @@ public class SpeakMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #speak} requests. */ /** The method id used to dispatch {@link #speak} requests. */
public static final int SPEAK = 1; public static final int SPEAK = 1;
// documentation inherited from interface // from interface SpeakService
public void speak (Client arg1, String arg2, byte arg3) public void speak (Client arg1, String arg2, byte arg3)
{ {
sendRequest(arg1, SPEAK, new Object[] { sendRequest(arg1, SPEAK, new Object[] {
arg2, Byte.valueOf(arg3) arg2, Byte.valueOf(arg3)
}); });
} }
} }
@@ -45,13 +45,13 @@ public class ChatDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// documentation inherited // from InvocationDispatcher
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new ChatMarshaller(); return new ChatMarshaller();
} }
// documentation inherited @SuppressWarnings("unchecked") // from InvocationDispatcher
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -43,13 +43,13 @@ public class SpeakDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// documentation inherited // from InvocationDispatcher
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new SpeakMarshaller(); return new SpeakMarshaller();
} }
// documentation inherited @SuppressWarnings("unchecked") // from InvocationDispatcher
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -39,12 +39,11 @@ public class BodyMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #setIdle} requests. */ /** The method id used to dispatch {@link #setIdle} requests. */
public static final int SET_IDLE = 1; public static final int SET_IDLE = 1;
// documentation inherited from interface // from interface BodyService
public void setIdle (Client arg1, boolean arg2) public void setIdle (Client arg1, boolean arg2)
{ {
sendRequest(arg1, SET_IDLE, new Object[] { sendRequest(arg1, SET_IDLE, new Object[] {
Boolean.valueOf(arg2) Boolean.valueOf(arg2)
}); });
} }
} }
@@ -37,7 +37,9 @@ import com.threerings.presents.dobj.InvocationResponseEvent;
public class LocationMarshaller extends InvocationMarshaller public class LocationMarshaller extends InvocationMarshaller
implements LocationService implements LocationService
{ {
// documentation inherited /**
* Marshalls results to implementations of {@link MoveListener}.
*/
public static class MoveMarshaller extends ListenerMarshaller public static class MoveMarshaller extends ListenerMarshaller
implements MoveListener implements MoveListener
{ {
@@ -45,7 +47,7 @@ public class LocationMarshaller extends InvocationMarshaller
* responses. */ * responses. */
public static final int MOVE_SUCCEEDED = 1; public static final int MOVE_SUCCEEDED = 1;
// documentation inherited from interface // from interface MoveMarshaller
public void moveSucceeded (PlaceConfig arg1) public void moveSucceeded (PlaceConfig arg1)
{ {
_invId = null; _invId = null;
@@ -54,7 +56,7 @@ public class LocationMarshaller extends InvocationMarshaller
new Object[] { arg1 })); new Object[] { arg1 }));
} }
// documentation inherited @Override // from InvocationMarshaller
public void dispatchResponse (int methodId, Object[] args) public void dispatchResponse (int methodId, Object[] args)
{ {
switch (methodId) { switch (methodId) {
@@ -73,7 +75,7 @@ public class LocationMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #leavePlace} requests. */ /** The method id used to dispatch {@link #leavePlace} requests. */
public static final int LEAVE_PLACE = 1; public static final int LEAVE_PLACE = 1;
// documentation inherited from interface // from interface LocationService
public void leavePlace (Client arg1) public void leavePlace (Client arg1)
{ {
sendRequest(arg1, LEAVE_PLACE, new Object[] { sendRequest(arg1, LEAVE_PLACE, new Object[] {
@@ -84,7 +86,7 @@ public class LocationMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #moveTo} requests. */ /** The method id used to dispatch {@link #moveTo} requests. */
public static final int MOVE_TO = 2; public static final int MOVE_TO = 2;
// documentation inherited from interface // from interface LocationService
public void moveTo (Client arg1, int arg2, LocationService.MoveListener arg3) public void moveTo (Client arg1, int arg2, LocationService.MoveListener arg3)
{ {
LocationMarshaller.MoveMarshaller listener3 = new LocationMarshaller.MoveMarshaller(); LocationMarshaller.MoveMarshaller listener3 = new LocationMarshaller.MoveMarshaller();
@@ -93,5 +95,4 @@ public class LocationMarshaller extends InvocationMarshaller
Integer.valueOf(arg2), listener3 Integer.valueOf(arg2), listener3
}); });
} }
} }
@@ -43,7 +43,7 @@ public class CrowdPeerMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #deliverTell} requests. */ /** The method id used to dispatch {@link #deliverTell} requests. */
public static final int DELIVER_TELL = 1; public static final int DELIVER_TELL = 1;
// documentation inherited from interface // from interface CrowdPeerService
public void deliverTell (Client arg1, UserMessage arg2, Name arg3, ChatService.TellListener arg4) public void deliverTell (Client arg1, UserMessage arg2, Name arg3, ChatService.TellListener arg4)
{ {
ChatMarshaller.TellMarshaller listener4 = new ChatMarshaller.TellMarshaller(); ChatMarshaller.TellMarshaller listener4 = new ChatMarshaller.TellMarshaller();
@@ -52,5 +52,4 @@ public class CrowdPeerMarshaller extends InvocationMarshaller
arg2, arg3, listener4 arg2, arg3, listener4
}); });
} }
} }
@@ -47,13 +47,13 @@ public class CrowdPeerDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// documentation inherited // from InvocationDispatcher
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new CrowdPeerMarshaller(); return new CrowdPeerMarshaller();
} }
// documentation inherited @SuppressWarnings("unchecked") // from InvocationDispatcher
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -43,13 +43,13 @@ public class BodyDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// documentation inherited // from InvocationDispatcher
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new BodyMarshaller(); return new BodyMarshaller();
} }
// documentation inherited @SuppressWarnings("unchecked") // from InvocationDispatcher
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -44,13 +44,13 @@ public class LocationDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// documentation inherited // from InvocationDispatcher
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new LocationMarshaller(); return new LocationMarshaller();
} }
// documentation inherited @SuppressWarnings("unchecked") // from InvocationDispatcher
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException
@@ -36,7 +36,9 @@ import com.threerings.presents.dobj.InvocationResponseEvent;
public class TimeBaseMarshaller extends InvocationMarshaller public class TimeBaseMarshaller extends InvocationMarshaller
implements TimeBaseService implements TimeBaseService
{ {
// documentation inherited /**
* Marshalls results to implementations of {@link GotTimeBaseListener}.
*/
public static class GotTimeBaseMarshaller extends ListenerMarshaller public static class GotTimeBaseMarshaller extends ListenerMarshaller
implements GotTimeBaseListener implements GotTimeBaseListener
{ {
@@ -44,7 +46,7 @@ public class TimeBaseMarshaller extends InvocationMarshaller
* responses. */ * responses. */
public static final int GOT_TIME_OID = 1; public static final int GOT_TIME_OID = 1;
// documentation inherited from interface // from interface GotTimeBaseMarshaller
public void gotTimeOid (int arg1) public void gotTimeOid (int arg1)
{ {
_invId = null; _invId = null;
@@ -53,7 +55,7 @@ public class TimeBaseMarshaller extends InvocationMarshaller
new Object[] { Integer.valueOf(arg1) })); new Object[] { Integer.valueOf(arg1) }));
} }
// documentation inherited @Override // from InvocationMarshaller
public void dispatchResponse (int methodId, Object[] args) public void dispatchResponse (int methodId, Object[] args)
{ {
switch (methodId) { switch (methodId) {
@@ -72,7 +74,7 @@ public class TimeBaseMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #getTimeOid} requests. */ /** The method id used to dispatch {@link #getTimeOid} requests. */
public static final int GET_TIME_OID = 1; public static final int GET_TIME_OID = 1;
// documentation inherited from interface // from interface TimeBaseService
public void getTimeOid (Client arg1, String arg2, TimeBaseService.GotTimeBaseListener arg3) public void getTimeOid (Client arg1, String arg2, TimeBaseService.GotTimeBaseListener arg3)
{ {
TimeBaseMarshaller.GotTimeBaseMarshaller listener3 = new TimeBaseMarshaller.GotTimeBaseMarshaller(); TimeBaseMarshaller.GotTimeBaseMarshaller listener3 = new TimeBaseMarshaller.GotTimeBaseMarshaller();
@@ -81,5 +83,4 @@ public class TimeBaseMarshaller extends InvocationMarshaller
arg2, listener3 arg2, listener3
}); });
} }
} }
@@ -42,13 +42,13 @@ public class TimeBaseDispatcher extends InvocationDispatcher
this.provider = provider; this.provider = provider;
} }
// documentation inherited // from InvocationDispatcher
public InvocationMarshaller createMarshaller () public InvocationMarshaller createMarshaller ()
{ {
return new TimeBaseMarshaller(); return new TimeBaseMarshaller();
} }
// documentation inherited @SuppressWarnings("unchecked") // from InvocationDispatcher
public void dispatchRequest ( public void dispatchRequest (
ClientObject source, int methodId, Object[] args) ClientObject source, int methodId, Object[] args)
throws InvocationException throws InvocationException