Modified DObjectManager.createObject() to not afford optional subscription

because subscription no longer means receiving events.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@537 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-24 00:36:40 +00:00
parent 660fccceb4
commit 57b2e93ac3
9 changed files with 24 additions and 36 deletions
@@ -1,5 +1,5 @@
//
// $Id: DOMTest.java,v 1.3 2001/10/12 00:03:03 mdb Exp $
// $Id: DOMTest.java,v 1.4 2001/10/24 00:36:40 mdb Exp $
package com.threerings.presents.server.test;
@@ -48,10 +48,10 @@ public class DOMTest implements Subscriber, AttributeChangeListener
DOMTest sub = new DOMTest();
// request that a new TestObject be created
omgr.createObject(TestObject.class, sub, true);
omgr.createObject(TestObject.class, sub);
// or for fun you can try this bogus create request
// omgr.createObject(Integer.class, sub, true);
// omgr.createObject(Integer.class, sub);
// and run the object manager
omgr.run();
@@ -1,5 +1,5 @@
//
// $Id: DestroyedRefTest.java,v 1.3 2001/10/12 00:03:03 mdb Exp $
// $Id: DestroyedRefTest.java,v 1.4 2001/10/24 00:36:40 mdb Exp $
package com.threerings.presents.server.test;
@@ -17,8 +17,8 @@ public class DestroyedRefTest
public void run ()
{
// create two test objects
PresentsServer.omgr.createObject(TestObject.class, this, true);
PresentsServer.omgr.createObject(TestObject.class, this, true);
PresentsServer.omgr.createObject(TestObject.class, this);
PresentsServer.omgr.createObject(TestObject.class, this);
}
public void objectAvailable (DObject object)
@@ -1,5 +1,5 @@
//
// $Id: RefTest.java,v 1.3 2001/10/12 00:03:03 mdb Exp $
// $Id: RefTest.java,v 1.4 2001/10/24 00:36:40 mdb Exp $
package com.threerings.presents.server.test;
@@ -16,8 +16,8 @@ public class RefTest
public void run ()
{
// create two test objects
PresentsServer.omgr.createObject(TestObject.class, this, true);
PresentsServer.omgr.createObject(TestObject.class, this, true);
PresentsServer.omgr.createObject(TestObject.class, this);
PresentsServer.omgr.createObject(TestObject.class, this);
}
public void objectAvailable (DObject object)
@@ -1,5 +1,5 @@
//
// $Id: TestServer.java,v 1.5 2001/10/12 00:03:03 mdb Exp $
// $Id: TestServer.java,v 1.6 2001/10/24 00:36:40 mdb Exp $
package com.threerings.presents.server.test;
@@ -39,7 +39,7 @@ public class TestServer extends PresentsServer
"[error=" + cause + "].");
}
};
omgr.createObject(TestObject.class, sub, false);
omgr.createObject(TestObject.class, sub);
}
public static void main (String[] args)