Class ResBundleUtils


  • public class ResBundleUtils
    extends Object
    Class to model resource bundle to be used to get messages from, using the default locale, specified in AMConfig.properties or OS locale if AMConfig.properties does not have locale defined
    • Constructor Detail

      • ResBundleUtils

        public ResBundleUtils()
    • Method Detail

      • getString

        public static String getString​(String key)
        Returns localized string for the default locale specified in AMConfig. properties or if null based on the default OS locale.
        Parameters:
        key - key to look up the localized message for
        Returns:
        localized string or key if localized string is missing
      • getString

        public static String getString​(String key,
                                       Object[] params)
        Returns localized formatted string
        Parameters:
        key - key to look up the localized message for
        params - parameters to be applied to the message
        Returns:
        localized string or key if localized string is missing, uses locale as set in AMConfig.properties or default OS locale.