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:
@@ -52,7 +52,7 @@ public abstract class AbstractSignalHandler
|
||||
protected void termReceived ()
|
||||
{
|
||||
log.info("Shutdown initiated by TERM signal.");
|
||||
_server.queueShutdown();
|
||||
_shutmgr.queueShutdown();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -61,7 +61,7 @@ public abstract class AbstractSignalHandler
|
||||
protected void intReceived ()
|
||||
{
|
||||
log.info("Shutdown initiated by INT signal.");
|
||||
_server.queueShutdown();
|
||||
_shutmgr.queueShutdown();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,6 +72,6 @@ public abstract class AbstractSignalHandler
|
||||
log.info(_repmgr.generateReport());
|
||||
}
|
||||
|
||||
@Inject protected PresentsServer _server;
|
||||
@Inject protected ShutdownManager _shutmgr;
|
||||
@Inject protected ReportManager _repmgr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user