java.lang.Object
it.tidalwave.util.BundleUtilities
Facility class to manage resource bundles.
- Since:
- 3.1-ALPHA-2
- Author:
- Fabrizio Giudici
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BundleUtilities
public BundleUtilities()
-
-
Method Details
-
getMessage
@Nonnull public static String getMessage(@Nonnull Class<?> clazz, @Nonnull String key, @Nonnull Object... params) Returns a localised message..- Parameters:
clazz
- the owner of the bundlekey
- the key of the resource inside the bundleparams
- the parameters (used if the string in the bundle is aString
format)- Returns:
- a localised message
-
getMessage
@Nonnull public static String getMessage(@Nonnull Class<?> clazz, @Nonnull Locale locale, @Nonnull String key, @Nonnull Object... params) Returns a localised message..- Parameters:
clazz
- the owner of the bundlelocale
- theLocale
key
- the key of the resource inside the bundleparams
- the parameters (used if the string in the bundle is aString
format)- Returns:
- a localised message
- Since:
- 3.1-ALPHA-4
-