*/\r
private boolean guiClient = false;\r
\r
+ /**\r
+ * Getter for printable application name\r
+ * \r
+ * @return A printable name\r
+ */\r
+ public static String printableTitle () {\r
+ return MessageFormat.format("{0} v{1}", APP_TITLE, APP_VERSION);\r
+ }\r
+\r
/**\r
* Bootstraps application\r
*/\r
// Launch application\r
ApplicationManager.getManager(this).start();\r
\r
- this.getLogger().info("End of program (last line)");\r
+ // Good bye, but this should not be reached ...\r
+ this.getLogger().warn("Unusual exit reached.");\r
+ this.doShutdown();\r
}\r
\r
/**\r
// Start application\r
new AddressbookApplication().start(args);\r
}\r
+\r
+ /**\r
+ * Shuts down the application.\r
+ */\r
+ @Override\r
+ public void doShutdown () {\r
+ // Shutdown client\r
+ this.getClient().doShutdown();\r
+\r
+ this.getLogger().info("End of program (last line)");\r
+ System.exit(0);\r
+ }\r
}\r