public abstract class BaseI18n
extends NLS
I18N
classes.Constructor and Description |
---|
BaseI18n() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getBundleName()
Throws an IllegalAccessError as this method has to be overridden by each and
every implementing class.
|
protected static java.lang.String |
getBundlePath(java.lang.String bundle)
Gets the locale specific path for the given resource bundle.
|
java.util.ResourceBundle |
getResourceBundle() |
static void |
initializeMessages(java.lang.String bundle,
java.lang.Class clazz)
Initializes the resource bundle locale specific.
|
protected java.lang.String getBundleName()
java.lang.IllegalAccessError
public java.util.ResourceBundle getResourceBundle()
getBundleName()
.protected static java.lang.String getBundlePath(java.lang.String bundle)
bundle
- The resource bundle to be loaded, e.g.
I18nError
. Do not append the ".properties" ending!public static void initializeMessages(java.lang.String bundle, java.lang.Class clazz)
bundle
- The bundle to be loadedclazz
- The class who's bundle is to be loaded.