From 959cf8c212ee5990475b4529584814e605bd7d4e Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 14 Jul 2007 00:01:21 +0000 Subject: [PATCH] Leave all this scene registry creation to the implementing server. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@361 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../whirled/server/WhirledServer.java | 38 +------------------ 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/src/java/com/threerings/whirled/server/WhirledServer.java b/src/java/com/threerings/whirled/server/WhirledServer.java index 8b0cf1f5..fb34b4f1 100644 --- a/src/java/com/threerings/whirled/server/WhirledServer.java +++ b/src/java/com/threerings/whirled/server/WhirledServer.java @@ -62,9 +62,6 @@ public abstract class WhirledServer extends CrowdServer } }); - // create the scene repository - _screp = createSceneRepository(); - // create our scene registry screg = createSceneRegistry(); @@ -74,39 +71,6 @@ public abstract class WhirledServer extends CrowdServer /** * Creates the scene registry to be used on this server. */ - protected SceneRegistry createSceneRegistry () - throws Exception - { - return new SceneRegistry(invmgr, _screp, createSceneFactory(), createConfigFactory()); - } - - /** - * Creates the scene repository that will be used by this server. - * - * @exception Exception thrown if any error occurs while instantiating or initializing the - * scene repository. - */ - protected abstract SceneRepository createSceneRepository () + protected abstract SceneRegistry createSceneRegistry () throws Exception; - - /** - * Creates the scene factory that will be used by our scene registry. - * - * @exception Exception thrown if any error occurs while instantiating or initializing the - * scene repository. - */ - protected abstract SceneFactory createSceneFactory () - throws Exception; - - /** - * Creates the place config factory that will be used our scene registry. - * - * @exception Exception thrown if any error occurs while instantiating or initializing the - * scene repository. - */ - protected abstract SceneRegistry.ConfigFactory createConfigFactory () - throws Exception; - - /** The scene repository in use by this server. */ - protected SceneRepository _screp; }