private static final class DefaultLogger.LocalizedMessage extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
args
Arguments for MessageFormat.
|
private static java.util.Map<java.lang.String,java.util.ResourceBundle> |
BUNDLE_CACHE
A cache that maps bundle names to ResourceBundles.
|
private java.lang.String |
key
Key for the message format.
|
private static java.util.Locale |
LOCALE
The locale to localise messages to.
|
| Constructor and Description |
|---|
LocalizedMessage(java.lang.String key)
Creates a new
LocalizedMessage instance. |
LocalizedMessage(java.lang.String key,
java.lang.String... args)
Creates a new
LocalizedMessage instance. |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.ResourceBundle |
getBundle(java.lang.String bundleName)
Find a ResourceBundle for a given bundle name.
|
private java.lang.String |
getMessage()
Gets the translated message.
|
private static final java.util.Map<java.lang.String,java.util.ResourceBundle> BUNDLE_CACHE
private static final java.util.Locale LOCALE
private final java.lang.String key
private final java.lang.String[] args
LocalizedMessage(java.lang.String key)
LocalizedMessage instance.key - the key to locate the translation.LocalizedMessage(java.lang.String key, java.lang.String... args)
LocalizedMessage instance.key - the key to locate the translation.args - arguments for the translation.private java.lang.String getMessage()
private static java.util.ResourceBundle getBundle(java.lang.String bundleName)
bundleName - the bundle name.Copyright © 2001-2022. All Rights Reserved.