public class ResBundleUtils extends Object
Modifier and Type | Field and Description |
---|---|
static ResourceBundle |
bundle
Resource bundle to be used to get messages from, using the default
locale, specified in AMConfig.properties or OS locale if
AMConfig.properties does not have locale defined
|
static String |
rbName
resource bundle name
|
Constructor and Description |
---|
ResBundleUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getString(String key)
gets localized string for the default locale specified in
AMConfig.properties or if null based on the default OS locale.
|
static String |
getString(String key,
Object[] params)
gets localized formatted string
|
public static final String rbName
public static ResourceBundle bundle
public static String getString(String key)
key
- to localized stringkey
if localized string is
missingpublic static String getString(String key, Object[] params)
key
- to localized stringparams
- parameters to be applied to the messagekey
if localized string is
missing, uses locale as set in AMConfig.properties or default OS
locale.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.