public final class ResourceBundleHolder extends Object implements Serializable
ResourceBundle
s per locale.Constructor and Description |
---|
ResourceBundleHolder(Class<?> owner)
Deprecated.
Use
get(Class) |
Modifier and Type | Method and Description |
---|---|
String |
format(String key,
Object... args)
Formats a resource specified by the given key by using the default locale
|
static ResourceBundleHolder |
get(Class<?> clazz)
Gets a
ResourceBundleHolder for the given class,
by utilizing a cache if possible. |
ResourceBundle |
get(Locale locale)
Loads
ResourceBundle for the locale. |
String |
toString() |
public final Class<?> owner
public ResourceBundleHolder(Class<?> owner)
get(Class)
owner
- The name of the generated resource bundle class.public static ResourceBundleHolder get(Class<?> clazz)
ResourceBundleHolder
for the given class,
by utilizing a cache if possible.public ResourceBundle get(Locale locale)
ResourceBundle
for the locale.Copyright © 2015. All rights reserved.