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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user