*/
package org.mxchange.jcoreee;
+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 {
+public abstract class BaseEeSystem implements Serializable {
+
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 48_475_834_783_473_187L;
+
/**
* Bundle instance
*/
- private volatile ResourceBundle bundle;
+ private final ResourceBundle bundle;
/**
* Protectd constructor
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
// Return message
return this.getBundle().getString(key);
}
-
- /**
- * Getter for bundle instance
- *
- * @return Bundle instance
- */
- private ResourceBundle getBundle () {
- return this.bundle;
- }
}