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:
@@ -3,7 +3,7 @@
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// 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
|
||||
// under the terms of the GNU Lesser General Public License as published
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// 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
|
||||
// under the terms of the GNU Lesser General Public License as published
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
package com.threerings.presents.data;
|
||||
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import com.threerings.presents.client.Client;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
import com.threerings.presents.client.TestService;
|
||||
@@ -34,6 +36,8 @@ import java.util.List;
|
||||
* interfaces that marshall the response arguments and deliver them back
|
||||
* to the requesting client.
|
||||
*/
|
||||
@Generated(value={"com.threerings.presents.tools.GenServiceTask"},
|
||||
comments="Derived from TestService.java.")
|
||||
public class TestMarshaller extends InvocationMarshaller
|
||||
implements TestService
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
package com.threerings.presents.data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import javax.annotation.Generated;
|
||||
|
||||
import com.threerings.presents.dobj.DObject;
|
||||
import com.threerings.presents.dobj.OidList;
|
||||
@@ -33,21 +34,27 @@ public class TestObject extends DObject
|
||||
{
|
||||
// AUTO-GENERATED: FIELDS START
|
||||
/** The field name of the <code>foo</code> field. */
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public static final String FOO = "foo";
|
||||
|
||||
/** The field name of the <code>bar</code> field. */
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public static final String BAR = "bar";
|
||||
|
||||
/** The field name of the <code>ints</code> field. */
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public static final String INTS = "ints";
|
||||
|
||||
/** The field name of the <code>strings</code> field. */
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public static final String STRINGS = "strings";
|
||||
|
||||
/** The field name of the <code>list</code> field. */
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public static final String LIST = "list";
|
||||
|
||||
/** The field name of the <code>longs</code> field. */
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public static final String LONGS = "longs";
|
||||
// AUTO-GENERATED: FIELDS END
|
||||
|
||||
@@ -72,6 +79,7 @@ public class TestObject extends DObject
|
||||
* clients) will apply the value change when they received the
|
||||
* attribute changed notification.
|
||||
*/
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public void setFoo (int value)
|
||||
{
|
||||
int ovalue = this.foo;
|
||||
@@ -88,6 +96,7 @@ public class TestObject extends DObject
|
||||
* clients) will apply the value change when they received the
|
||||
* attribute changed notification.
|
||||
*/
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public void setBar (String value)
|
||||
{
|
||||
String ovalue = this.bar;
|
||||
@@ -104,12 +113,13 @@ public class TestObject extends DObject
|
||||
* clients) will apply the value change when they received the
|
||||
* attribute changed notification.
|
||||
*/
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public void setInts (int[] value)
|
||||
{
|
||||
int[] ovalue = this.ints;
|
||||
requestAttributeChange(
|
||||
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
|
||||
* changed notification.
|
||||
*/
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public void setIntsAt (int value, int 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
|
||||
* attribute changed notification.
|
||||
*/
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public void setStrings (String[] value)
|
||||
{
|
||||
String[] ovalue = this.strings;
|
||||
requestAttributeChange(
|
||||
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
|
||||
* changed notification.
|
||||
*/
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public void setStringsAt (String value, int 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
|
||||
* propagated through the system.
|
||||
*/
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public void addToList (int 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
|
||||
* event is actually propagated through the system.
|
||||
*/
|
||||
@Generated(value={"com.threerings.presents.tools.GenDObjectTask"})
|
||||
public void removeFromList (int oid)
|
||||
{
|
||||
requestOidRemove(LIST, oid);
|
||||
@@ -190,9 +205,10 @@ public class TestObject extends DObject
|
||||
* clients) will apply the value change when they received the
|
||||
* 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(
|
||||
LONGS, value, ovalue);
|
||||
this.longs = value;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// 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
|
||||
// under the terms of the GNU Lesser General Public License as published
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
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;
|
||||
@@ -30,6 +32,8 @@ 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<TestMarshaller>
|
||||
{
|
||||
/**
|
||||
@@ -66,9 +70,8 @@ public class TestDispatcher extends InvocationDispatcher<TestMarshaller>
|
||||
return;
|
||||
|
||||
case TestMarshaller.TEST:
|
||||
@SuppressWarnings("unchecked") List<Integer> list = (List<Integer>)args[2];
|
||||
((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;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// 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
|
||||
// under the terms of the GNU Lesser General Public License as published
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
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;
|
||||
@@ -29,6 +31,8 @@ import java.util.List;
|
||||
/**
|
||||
* 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
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//
|
||||
// Narya library - tools for developing networked games
|
||||
// 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
|
||||
// under the terms of the GNU Lesser General Public License as published
|
||||
|
||||
Reference in New Issue
Block a user