Actually instead of doing the necessary jiggery pokery to make PresentsServer

subclasses provide PresentsServer "services" we'll just have no PresentsServer
services. All services will be provided by components and the server will
disappear in a puff of inversion of control.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5155 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-06-07 18:57:04 +00:00
parent c568204bbb
commit fce06c52c5
6 changed files with 45 additions and 40 deletions
@@ -67,6 +67,7 @@ import com.threerings.presents.util.DatagramSequencer;
import com.threerings.presents.server.Authenticator;
import com.threerings.presents.server.PresentsDObjectMgr;
import com.threerings.presents.server.ReportManager;
import com.threerings.presents.server.ShutdownManager;
import static com.threerings.presents.Log.log;
@@ -78,14 +79,15 @@ import static com.threerings.presents.Log.log;
*/
@Singleton
public class ConnectionManager extends LoopingThread
implements ReportManager.Reporter
implements ShutdownManager.Shutdowner, ReportManager.Reporter
{
/**
* Creates a connection manager instance. Don't call this, Guice will do it for you.
*/
@Inject public ConnectionManager (ReportManager repmgr)
@Inject public ConnectionManager (ShutdownManager shutmgr, ReportManager repmgr)
{
super("ConnectionManager");
shutmgr.registerShutdowner(this);
repmgr.registerReporter(this);
}