Package it.tidalwave.util
Class BundleUtilities
- java.lang.Object
-
- it.tidalwave.util.BundleUtilities
-
public final class BundleUtilities extends java.lang.Object
Facility class to manage resource bundles.- Since:
- 3.1-ALPHA-2
- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description BundleUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getMessage(java.lang.Class<?> ownerClass, java.lang.String resourceName, java.lang.Object... params)
Returns a localised message.static java.lang.String
getMessage(java.lang.Class<?> ownerClass, java.util.Locale locale, java.lang.String resourceName, java.lang.Object... params)
Returns a localised message.
-
-
-
Method Detail
-
getMessage
@Nonnull public static java.lang.String getMessage(@Nonnull java.lang.Class<?> ownerClass, @Nonnull java.lang.String resourceName, @Nonnull java.lang.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 java.lang.String getMessage(@Nonnull java.lang.Class<?> ownerClass, @Nonnull java.util.Locale locale, @Nonnull java.lang.String resourceName, @Nonnull java.lang.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
-
-