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
Author:
Fabrizio Giudici
  • 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 bundle
      key - the key of the resource inside the bundle
      params - the parameters (used if the string in the bundle is a String 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 bundle
      locale - the Locale
      key - the key of the resource inside the bundle
      params - the parameters (used if the string in the bundle is a String format)
      Returns:
      a localised message
      Since:
      3.1-ALPHA-4