Package it.tidalwave.util
Class BundleUtilities
- java.lang.Object
-
- it.tidalwave.util.BundleUtilities
-
public final class BundleUtilities extends Object
Facility class to manage resource bundles.- Since:
- 3.1-ALPHA-2
- Version:
- $Id: $
- Author:
- Fabrizio Giudici ([email protected])
-
-
Constructor Summary
Constructors Constructor Description BundleUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetMessage(Class<?> ownerClass, String resourceName, Object... params)Returns a localised message.static StringgetMessage(Class<?> ownerClass, Locale locale, String resourceName, Object... params)Returns a localised message.
-
-
-
Method Detail
-
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 aStringformat)- 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- theLocaleresourceName- the name of the resource inside the bundleparams- the parameters (used if the string in the bundle is aStringformat)- Returns:
- the message
- Since:
- 3.1-ALPHA-4
-
-