]> git.mxchange.org Git - jcore.git/blobdiff - src/org/mxchange/jcore/BaseFrameworkSystem.java
updated translation keys
[jcore.git] / src / org / mxchange / jcore / BaseFrameworkSystem.java
index aed856b59fdee3f0aa5fae3abae3cb8bc9287d6b..ebfe18b0ce45fb3a7083afc73fdc888774be047e 100644 (file)
@@ -24,15 +24,15 @@ import org.apache.logging.log4j.LogManager;
 import org.apache.logging.log4j.Logger;
 import org.mxchange.jcore.application.Application;
 import org.mxchange.jcore.client.Client;
-import org.mxchange.jcore.model.contact.Contact;
 import org.mxchange.jcore.manager.Manageable;
+import org.mxchange.jcore.model.contact.Contact;
 
 /**
  * General class
  *
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
  */
-public class BaseFrameworkSystem implements FrameworkInterface {
+public abstract class BaseFrameworkSystem implements FrameworkInterface {
 
        /**
         * Bundle instance
@@ -91,28 +91,32 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @return Instance from this application
         */
-       public static final FrameworkInterface getInstance () {
+       public static FrameworkInterface getInstance () {
                // Return it
                return selfInstance;
        }
 
        @Override
-       public final Application getApplication () {
+       public Application getApplication () {
                return this.application;
        }
 
-       @Override
-       public final Logger getLogger () {
+       /**
+        * Getter for logger instance
+        *
+        * @return Logger instance
+        */
+       protected Logger getLogger () {
                return this.LOG;
        }
 
        @Override
-       public final Manageable getManager () {
+       public Manageable getManager () {
                return this.manager;
        }
 
        @Override
-       public final String getMessageStringFromKey (final String key) {
+       public String getMessageStringFromKey (final String key) {
                // Return message
                return this.getBundle().getString(key);
        }
@@ -122,7 +126,7 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @param throwable Any type of Throwable
         */
-       protected final void abortProgramWithException (final Throwable throwable) {
+       protected void abortProgramWithException (final Throwable throwable) {
                // Log exception ...
                this.logException(throwable);
 
@@ -135,12 +139,12 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @param application the application to set
         */
-       protected final void setApplication (final Application application) {
+       protected void setApplication (final Application application) {
                this.application = application;
        }
 
        @Override
-       public final Client getClient () {
+       public Client getClient () {
                return this.client;
        }
 
@@ -149,7 +153,7 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @return Resource bundle
         */
-       protected final ResourceBundle getBundle () {
+       protected ResourceBundle getBundle () {
                return BaseFrameworkSystem.bundle;
        }
 
@@ -167,12 +171,12 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @param client the client to set
         */
-       protected final void setClient (final Client client) {
+       protected void setClient (final Client client) {
                this.client = client;
        }
 
        @Override
-       public final void logException (final Throwable exception) {
+       public void logException (final Throwable exception) {
                // Log this exception
                this.getLogger().catching(exception);
        }
@@ -244,7 +248,7 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @param manager the manager instance to set
         */
-       protected final void setManager (final Manageable manager) {
+       protected void setManager (final Manageable manager) {
                this.manager = manager;
        }
 
@@ -253,7 +257,7 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @return Contact instance
         */
-       protected final Contact getContact () {
+       protected Contact getContact () {
                return this.contact;
        }
 
@@ -262,7 +266,7 @@ public class BaseFrameworkSystem implements FrameworkInterface {
         *
         * @param contact A Contact instance
         */
-       protected final void setContact (final Contact contact) {
+       protected void setContact (final Contact contact) {
                this.contact = contact;
        }