Three things:
- Inject the auth Invoker. - Inject the Authenticator and formalize the chaining authenticator pattern. - Simplify PeerNode creation and make the PeerAuthenticator a chainer. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5162 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -98,8 +98,10 @@ public class ClientManager
|
||||
@Inject public ClientManager (ConnectionManager conmgr, ReportManager repmgr,
|
||||
ShutdownManager shutmgr)
|
||||
{
|
||||
// register ourselves as a connection observer
|
||||
// register as a connection observer, a "state of server" reporter and a shutdowner
|
||||
conmgr.addConnectionObserver(this);
|
||||
repmgr.registerReporter(this);
|
||||
shutmgr.registerShutdowner(this);
|
||||
|
||||
// start up an interval that will check for expired clients and flush them from the bowels
|
||||
// of the server
|
||||
@@ -108,10 +110,6 @@ public class ClientManager
|
||||
flushClients();
|
||||
}
|
||||
}.schedule(CLIENT_FLUSH_INTERVAL, true);
|
||||
|
||||
// register as a "state of server" reporter and a shutdowner
|
||||
repmgr.registerReporter(this);
|
||||
shutmgr.registerShutdowner(this);
|
||||
}
|
||||
|
||||
// from interface ShutdownManager.Shutdowner
|
||||
|
||||
Reference in New Issue
Block a user