Use injected dependencies, regened services.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5206 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-06-29 12:43:34 +00:00
parent 34439e3461
commit c2d22b1e24
6 changed files with 66 additions and 71 deletions
@@ -12,21 +12,11 @@ import com.threerings.crowd.data.PlaceObject;
import static com.threerings.crowd.Log.log;
/**
* A basic server that creates a single room and sticks everyone in it
* where they can chat with one another.
* A basic server that creates a single room and sticks everyone in it where they can chat with one
* another.
*/
public class JabberServer extends CrowdServer
{
// documentation inherited
public void init (Injector injector)
throws Exception
{
super.init(injector);
// create a single location
_pmgr = plreg.createPlace(new JabberConfig());
}
public static void main (String[] args)
{
Injector injector = Guice.createInjector(new Module());
@@ -40,5 +30,15 @@ public class JabberServer extends CrowdServer
}
}
@Override // from CrowdServer
public void init (Injector injector)
throws Exception
{
super.init(injector);
// create a single location
_pmgr = _plreg.createPlace(new JabberConfig());
}
protected PlaceManager _pmgr;
}