]> git.mxchange.org Git - jfinancials-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/client/BaseClient.java
A lot more improvements:
[jfinancials-lib.git] / Addressbook / src / org / mxchange / addressbook / client / BaseClient.java
index 54d8bc32aad56c692a561fb867d766e523829b07..6bd281fe265568813d711d2e97e48f68cba502f4 100644 (file)
@@ -16,6 +16,7 @@
  */
 package org.mxchange.addressbook.client;
 
+import java.text.MessageFormat;
 import java.util.HashMap;
 import java.util.Map;
 import org.mxchange.addressbook.BaseFrameworkSystem;
@@ -59,11 +60,17 @@ public abstract class BaseClient extends BaseFrameworkSystem {
         * Shutdown method for all clients
         */
        public void doShutdown () {
+               // Trace message
+               this.getLogger().trace("CALLED!"); //NOI18N
+
                // Disable client
                this.disableIsRunning();
 
                // Shuts down contact manager
                this.getContactManager().doShutdown();
+
+               // Trace message
+               this.getLogger().trace("EXIT!"); //NOI18N
        }
 
        /**
@@ -147,6 +154,9 @@ public abstract class BaseClient extends BaseFrameworkSystem {
         * Initializes contact manager
         */
        protected void initContactManager () {
+               // Trace message
+               this.getLogger().trace("CALLED!"); //NOI18N
+
                // Debug message
                this.getLogger().debug("Initializing contact manager ...");
 
@@ -159,6 +169,9 @@ public abstract class BaseClient extends BaseFrameworkSystem {
 
                // Debug message
                this.getLogger().debug("Contact manager has been initialized.");
+
+               // Trace message
+               this.getLogger().trace("EXIT!"); //NOI18N
        }
 
        /**
@@ -167,6 +180,9 @@ public abstract class BaseClient extends BaseFrameworkSystem {
         * @param menuType Given menu to show
         */
        protected void showMenu (final String menuType) {
+               // Trace message
+               this.getLogger().trace(MessageFormat.format("menuType={0} - CALLED!", menuType)); //NOI18N
+
                Menu menu = this.getMenu(menuType);
 
                // Is the menu set?
@@ -178,5 +194,8 @@ public abstract class BaseClient extends BaseFrameworkSystem {
 
                // Show menu
                menu.show((Client) this);
+
+               // Trace message
+               this.getLogger().trace("EXIT!"); //NOI18N
        }
 }