*/
public static final String APP_VERSION = "0.0";
+ /**
+ * Self instance
+ */
+ private static Application selfInstance;
+
/**
* Console client is enabled by default
*/
*/
private boolean guiClient = false;
+ /**
+ * Protected constructor
+ */
+ protected AddressbookApplication () {
+ // Set own instance
+ selfInstance = this;
+ }
+
/**
* Getter for printable application name
*
this.getLogger().info("End of program (last line)");
System.exit(0);
}
+
+ /**
+ * Getter for this application
+ *
+ * @return Instance from this application
+ */
+ public static final Application getInstance () {
+ // Return it
+ return selfInstance;
+ }
}