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
This commit is contained in:
@@ -62,9 +62,6 @@ public abstract class WhirledServer extends CrowdServer
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// create the scene repository
|
|
||||||
_screp = createSceneRepository();
|
|
||||||
|
|
||||||
// create our scene registry
|
// create our scene registry
|
||||||
screg = createSceneRegistry();
|
screg = createSceneRegistry();
|
||||||
|
|
||||||
@@ -74,39 +71,6 @@ public abstract class WhirledServer extends CrowdServer
|
|||||||
/**
|
/**
|
||||||
* Creates the scene registry to be used on this server.
|
* Creates the scene registry to be used on this server.
|
||||||
*/
|
*/
|
||||||
protected SceneRegistry createSceneRegistry ()
|
protected abstract 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 ()
|
|
||||||
throws Exception;
|
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;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user