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