Signed-off-by:Roland Häder <roland@mxchange.org>
/**
* Bundle instance
*/
- private final ResourceBundle bundle;
+ private static ResourceBundle bundle;
/**
* Client instance
*/
{
LOG = LogManager.getLogger(this);
- bundle = ResourceBundle.getBundle(FrameworkInterface.I18N_BUNDLE_FILE); // NOI18N
}
/**
this.initProperties();
}
+ /**
+ * Initializes i18n bundles
+ */
+ protected void initBundle () {
+ // Is the bundle set?
+ if (bundle instanceof ResourceBundle) {
+ // Is already set
+ throw new IllegalStateException("called twice");
+ }
+
+ // Set instance
+ bundle = ResourceBundle.getBundle(FrameworkInterface.I18N_BUNDLE_FILE); // NOI18N
+ }
+
/**
* Application instance
*