public class LAFMessageHandler extends GlobalMessages
BUNDLE_NAME, GMinstance, localeCodes, localeDescr, locales, log, PKG, SYSTEM_BUNDLE_PACKAGE
Constructor and Description |
---|
LAFMessageHandler() |
Modifier and Type | Method and Description |
---|---|
protected String |
calculateString(String packageName,
String key,
Object[] parameters,
Class<?> resourceClass)
Returns the localized string for the given
key and parameters in a bundle defined by the the
concatenation of packageName and GlobalMessages.BUNDLE_NAME , using the provided resourceClass 's class
loader. |
static MessageHandler |
getInstance() |
protected void |
reinit() |
buildBundleName, calculateString, calculateString, getBundle, getLocales, getString, getString, getString, getString
getLocale, setLocale
public static MessageHandler getInstance()
protected void reinit()
protected String calculateString(String packageName, String key, Object[] parameters, Class<?> resourceClass)
GlobalMessages
key
and parameters
in a bundle defined by the the
concatenation of packageName
and GlobalMessages.BUNDLE_NAME
, using the provided resourceClass
's class
loader.calculateString
in class GlobalMessages
packageName
- the package containing the localized messageskey
- the message key being looked upparameters
- parameters within the looked up messageresourceClass
- the class whose class loader is used to getch the resource bundlekey
and parameters
in a bundle defined by the the
concatenation of packageName
and GlobalMessages.BUNDLE_NAME
, using the provided resourceClass
's class
loader.Copyright © 2019 Hitachi Vantara. All rights reserved.