]> git.mxchange.org Git - jcore-utils.git/blobdiff - src/org/mxchange/jcoreee/BaseEeSystem.java
fixed path for Linux/MacOS
[jcore-utils.git] / src / org / mxchange / jcoreee / BaseEeSystem.java
index 8ca3542da721441d7a0afa77ab11fad041e1dbd3..357b1b7b63815368cdbc6a72053ada8d3583d2ce 100644 (file)
@@ -20,10 +20,12 @@ import java.io.Serializable;
 import java.util.ResourceBundle;
 
 /**
- *
+ * A general class for Java EE applications. You should not include this in your
+ * web applications as this requires that the bundle has to be placed here.
+ * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
-public class BaseEeSystem implements Serializable {
+public abstract class BaseEeSystem implements Serializable {
 
        /**
         * Serial number
@@ -43,13 +45,22 @@ public class BaseEeSystem implements Serializable {
                this.bundle = ResourceBundle.getBundle("org/mxchange/localization/bundle");
        }
 
+       /**
+        * Getter for bundle instance
+        * <p>
+        * @return Bundle instance
+        */
+       private ResourceBundle getBundle () {
+               return this.bundle;
+       }
+
        /**
         * Getter for message from given key
-        *
+        * <p>
         * @param key Key to get message from
         * @return Message
         */
-       protected String getMessageStringFromKey (final String key) {
+       protected String getMessageFromKey (final String key) {
                // Is the bundle loaded?
                if (this.getBundle() == null) {
                        // Abort here
@@ -59,13 +70,4 @@ public class BaseEeSystem implements Serializable {
                // Return message
                return this.getBundle().getString(key);
        }
-
-       /**
-        * Getter for bundle instance
-        *
-        * @return Bundle instance
-        */
-       protected ResourceBundle getBundle () {
-               return this.bundle;
-       }
 }