Basic Guice compliance.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@614 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2008-06-07 17:45:30 +00:00
parent 2090bcdfeb
commit 0a2b8b8f52
9 changed files with 80 additions and 59 deletions
@@ -21,6 +21,8 @@
package com.threerings.whirled.server;
import com.google.inject.Injector;
import com.threerings.util.Name;
import com.threerings.presents.net.AuthRequest;
@@ -41,17 +43,23 @@ import static com.threerings.whirled.Log.log;
*/
public abstract class WhirledServer extends CrowdServer
{
/** Configures dependencies needed by the Whirled server. */
public static class Module extends CrowdServer.Module
{
@Override protected void configure () {
super.configure();
// nada
}
}
/** The scene registry. */
public static SceneRegistry screg;
/**
* Initializes all of the server services and prepares for operation.
*/
public void init ()
@Override // from CrowdServer
public void init (Injector injector)
throws Exception
{
// do the base server initialization
super.init();
super.init(injector);
// configure the client to use our whirled client
clmgr.setClientFactory(new ClientFactory() {