// and anything else we need to load from the configuration file.
updateConfiguration();
SuperQueue sq = SuperQueue.getInstance();
preQueueServices(sq);
final TimerHandler timeQueue = sq.start();
// This is how we shut down cleanly.
MQFactory.getConcrete("jbidwatcher").registerListener(new MessageQueue.Listener() {
public void messageAction(Object deQ) {
timeQueue.interrupt();
}
});
boolean updaterStarted = false;
if(Platform.isMac()) {
try {
mSparkle = new Sparkle();
mSparkle.start();
updaterStarted = true;
JConfig.setConfiguration("temp.sparkle", "true");
} catch(Throwable e) {
JConfig.log().handleDebugException("Couldn't start Sparkle - This message is normal under OS X 10.4", e);
updaterStarted = false;
JConfig.setConfiguration("temp.sparkle", "false");
}
}
if(!updaterStarted) {
TimerHandler updateTimer = new TimerHandler(UpdateManager.getInstance(), HOURS_IN_DAY * MINUTES_IN_HOUR * Constants.ONE_MINUTE);
updateTimer.setName("VersionChecker");
updateTimer.start();
}
AudioPlayer.start();
synchronized(memInfoSynch) { if(_rti == null && JConfig.queryConfiguration("debug.memory", "false").equals("true")) _rti = new RuntimeInfo(); }