Regenerated the test bits with the gen tasks.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6233 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2010-10-23 19:38:17 +00:00
parent e0dfddb46b
commit 0f8fd31f83
6 changed files with 38 additions and 11 deletions
@@ -3,7 +3,7 @@
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/ // http://code.google.com/p/narya/
// //
// This library is free software; you can redistribute it and/or modify it // 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 // under the terms of the GNU Lesser General Public License as published
@@ -3,7 +3,7 @@
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/ // http://code.google.com/p/narya/
// //
// This library is free software; you can redistribute it and/or modify it // 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 // under the terms of the GNU Lesser General Public License as published
@@ -21,6 +21,8 @@
package com.threerings.presents.data; package com.threerings.presents.data;
import javax.annotation.Generated;
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.client.TestService; import com.threerings.presents.client.TestService;
@@ -34,6 +36,8 @@ import java.util.List;
* interfaces that marshall the response arguments and deliver them back * interfaces that marshall the response arguments and deliver them back
* to the requesting client. * to the requesting client.
*/ */
@Generated(value={"com.threerings.presents.tools.GenServiceTask"},
comments="Derived from TestService.java.")
public class TestMarshaller extends InvocationMarshaller public class TestMarshaller extends InvocationMarshaller
implements TestService implements TestService
{ {
@@ -22,6 +22,7 @@
package com.threerings.presents.data; package com.threerings.presents.data;
import java.util.ArrayList; import java.util.ArrayList;
import javax.annotation.Generated;
import com.threerings.presents.dobj.DObject; import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.OidList; import com.threerings.presents.dobj.OidList;
@@ -33,21 +34,27 @@ public class TestObject extends DObject
{ {
// AUTO-GENERATED: FIELDS START // AUTO-GENERATED: FIELDS START
/** The field name of the <code>foo</code> field. */ /** The field name of the <code>foo</code> field. */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public static final String FOO = "foo"; public static final String FOO = "foo";
/** The field name of the <code>bar</code> field. */ /** The field name of the <code>bar</code> field. */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public static final String BAR = "bar"; public static final String BAR = "bar";
/** The field name of the <code>ints</code> field. */ /** The field name of the <code>ints</code> field. */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public static final String INTS = "ints"; public static final String INTS = "ints";
/** The field name of the <code>strings</code> field. */ /** The field name of the <code>strings</code> field. */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public static final String STRINGS = "strings"; public static final String STRINGS = "strings";
/** The field name of the <code>list</code> field. */ /** The field name of the <code>list</code> field. */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public static final String LIST = "list"; public static final String LIST = "list";
/** The field name of the <code>longs</code> field. */ /** The field name of the <code>longs</code> field. */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public static final String LONGS = "longs"; public static final String LONGS = "longs";
// AUTO-GENERATED: FIELDS END // AUTO-GENERATED: FIELDS END
@@ -72,6 +79,7 @@ public class TestObject extends DObject
* clients) will apply the value change when they received the * clients) will apply the value change when they received the
* attribute changed notification. * attribute changed notification.
*/ */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public void setFoo (int value) public void setFoo (int value)
{ {
int ovalue = this.foo; int ovalue = this.foo;
@@ -88,6 +96,7 @@ public class TestObject extends DObject
* clients) will apply the value change when they received the * clients) will apply the value change when they received the
* attribute changed notification. * attribute changed notification.
*/ */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public void setBar (String value) public void setBar (String value)
{ {
String ovalue = this.bar; String ovalue = this.bar;
@@ -104,12 +113,13 @@ public class TestObject extends DObject
* clients) will apply the value change when they received the * clients) will apply the value change when they received the
* attribute changed notification. * attribute changed notification.
*/ */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public void setInts (int[] value) public void setInts (int[] value)
{ {
int[] ovalue = this.ints; int[] ovalue = this.ints;
requestAttributeChange( requestAttributeChange(
INTS, value, ovalue); INTS, value, ovalue);
this.ints = (value == null) ? null : (int[])value.clone(); this.ints = (value == null) ? null : value.clone();
} }
/** /**
@@ -121,6 +131,7 @@ public class TestObject extends DObject
* will apply the value change when they received the attribute * will apply the value change when they received the attribute
* changed notification. * changed notification.
*/ */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public void setIntsAt (int value, int index) public void setIntsAt (int value, int index)
{ {
int ovalue = this.ints[index]; int ovalue = this.ints[index];
@@ -137,12 +148,13 @@ public class TestObject extends DObject
* clients) will apply the value change when they received the * clients) will apply the value change when they received the
* attribute changed notification. * attribute changed notification.
*/ */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public void setStrings (String[] value) public void setStrings (String[] value)
{ {
String[] ovalue = this.strings; String[] ovalue = this.strings;
requestAttributeChange( requestAttributeChange(
STRINGS, value, ovalue); STRINGS, value, ovalue);
this.strings = (value == null) ? null : (String[])value.clone(); this.strings = (value == null) ? null : value.clone();
} }
/** /**
@@ -154,6 +166,7 @@ public class TestObject extends DObject
* will apply the value change when they received the attribute * will apply the value change when they received the attribute
* changed notification. * changed notification.
*/ */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public void setStringsAt (String value, int index) public void setStringsAt (String value, int index)
{ {
String ovalue = this.strings[index]; String ovalue = this.strings[index];
@@ -167,6 +180,7 @@ public class TestObject extends DObject
* oid list. The list will not change until the event is actually * oid list. The list will not change until the event is actually
* propagated through the system. * propagated through the system.
*/ */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public void addToList (int oid) public void addToList (int oid)
{ {
requestOidAdd(LIST, oid); requestOidAdd(LIST, oid);
@@ -177,6 +191,7 @@ public class TestObject extends DObject
* <code>list</code> oid list. The list will not change until the * <code>list</code> oid list. The list will not change until the
* event is actually propagated through the system. * event is actually propagated through the system.
*/ */
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public void removeFromList (int oid) public void removeFromList (int oid)
{ {
requestOidRemove(LIST, oid); requestOidRemove(LIST, oid);
@@ -190,9 +205,10 @@ public class TestObject extends DObject
* clients) will apply the value change when they received the * clients) will apply the value change when they received the
* attribute changed notification. * attribute changed notification.
*/ */
public void setLongs (ArrayList<java.lang.Long> value) @Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
public void setLongs (ArrayList<Long> value)
{ {
ArrayList<java.lang.Long> ovalue = this.longs; ArrayList<Long> ovalue = this.longs;
requestAttributeChange( requestAttributeChange(
LONGS, value, ovalue); LONGS, value, ovalue);
this.longs = value; this.longs = value;
@@ -3,7 +3,7 @@
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/ // http://code.google.com/p/narya/
// //
// This library is free software; you can redistribute it and/or modify it // 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 // under the terms of the GNU Lesser General Public License as published
@@ -21,6 +21,8 @@
package com.threerings.presents.server; package com.threerings.presents.server;
import javax.annotation.Generated;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.client.TestService; import com.threerings.presents.client.TestService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
@@ -30,6 +32,8 @@ import java.util.List;
/** /**
* Dispatches requests to the {@link TestProvider}. * Dispatches requests to the {@link TestProvider}.
*/ */
@Generated(value={"com.threerings.presents.tools.GenServiceTask"},
comments="Derived from TestService.java.")
public class TestDispatcher extends InvocationDispatcher<TestMarshaller> public class TestDispatcher extends InvocationDispatcher<TestMarshaller>
{ {
/** /**
@@ -66,9 +70,8 @@ public class TestDispatcher extends InvocationDispatcher<TestMarshaller>
return; return;
case TestMarshaller.TEST: case TestMarshaller.TEST:
@SuppressWarnings("unchecked") List<Integer> list = (List<Integer>)args[2];
((TestProvider)provider).test( ((TestProvider)provider).test(
source, (String)args[0], ((Integer)args[1]).intValue(), list, (TestService.TestFuncListener)args[3] source, (String)args[0], ((Integer)args[1]).intValue(), this.<List<Integer>>cast(args[2]), (TestService.TestFuncListener)args[3]
); );
return; return;
@@ -3,7 +3,7 @@
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/ // http://code.google.com/p/narya/
// //
// This library is free software; you can redistribute it and/or modify it // 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 // under the terms of the GNU Lesser General Public License as published
@@ -21,6 +21,8 @@
package com.threerings.presents.server; package com.threerings.presents.server;
import javax.annotation.Generated;
import com.threerings.presents.client.InvocationService; import com.threerings.presents.client.InvocationService;
import com.threerings.presents.client.TestService; import com.threerings.presents.client.TestService;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
@@ -29,6 +31,8 @@ import java.util.List;
/** /**
* Defines the server-side of the {@link TestService}. * Defines the server-side of the {@link TestService}.
*/ */
@Generated(value={"com.threerings.presents.tools.GenServiceTask"},
comments="Derived from TestService.java.")
public interface TestProvider extends InvocationProvider public interface TestProvider extends InvocationProvider
{ {
/** /**
@@ -3,7 +3,7 @@
// //
// Narya library - tools for developing networked games // Narya library - tools for developing networked games
// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved // Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/ // http://code.google.com/p/narya/
// //
// This library is free software; you can redistribute it and/or modify it // 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 // under the terms of the GNU Lesser General Public License as published