Class MessageLoader


  • public class MessageLoader
    extends com.softwareag.g11n.util.wmResourceBundleLoader
    This class provides the convenience wrapper for the Broker APIs and Tools.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.softwareag.g11n.util.wmResourceBundleLoader

        com.softwareag.g11n.util.wmResourceBundleLoader.CleanUpTask
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageLoader()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.ResourceBundle getResourceBundle​(java.lang.String p_sBaseName, java.lang.String p_sJarName, java.util.Locale p_sLocale, java.lang.String envHome)
      Calls wmResourceBundleLoader to add directories to the directory list.
      static java.util.ResourceBundle getResourceBundle​(java.lang.String p_sBaseName, java.lang.String p_sJarName, java.util.Locale p_sLocale, java.lang.String envHome, java.lang.ClassLoader cl)
      Calls wmResourceBundleLoader to add directories to the directory list.
      protected static void initializeMessageLoader()
      Calls wmResourceBundleLoader methods to add directories to the directory list.
      • Methods inherited from class com.softwareag.g11n.util.wmResourceBundleLoader

        addResourceDirectory, cleanUpCache, getBundle, getBundle, getBundle, getBundle, getBundleList, getBundleList, getBundlePackageNames, getCacheCleanUpInterval, getCacheSize, getDirectoryList, getFallbackLocale, getSupportedLocales, indexDirectory, indexDirectoryImpl, init, isDirectoryCached, isInitialized, isLocaleSupported, reindexDirectory, removeResourceDirectory, resetCache, setFallbackLocale, shutdown, unloadBundle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MessageLoader

        public MessageLoader()
    • Method Detail

      • getResourceBundle

        public static java.util.ResourceBundle getResourceBundle​(java.lang.String p_sBaseName,
                                                                 java.lang.String p_sJarName,
                                                                 java.util.Locale p_sLocale,
                                                                 java.lang.String envHome)
        Calls wmResourceBundleLoader to add directories to the directory list. Then just calls getBundle(basename, locale). The function parameters has been changed to be compatible with the old MessageLoader implementation.
        Parameters:
        p_sBaseName - The Base name of the bundle to be loaded.
        p_sJarName - The Jar name where the bundle can be found (Not Used).
        p_sLocale - The locale needed to be loaded.
        envHome - The environment variable (Not Used).
        Returns:
        ResourceBundle
      • getResourceBundle

        public static java.util.ResourceBundle getResourceBundle​(java.lang.String p_sBaseName,
                                                                 java.lang.String p_sJarName,
                                                                 java.util.Locale p_sLocale,
                                                                 java.lang.String envHome,
                                                                 java.lang.ClassLoader cl)
        Calls wmResourceBundleLoader to add directories to the directory list. Then just calls getBundle(basename, locale). The function parameters has been changed to be compatible with the old MessageLoader implementation.
        Parameters:
        p_sBaseName - The Base name of the bundle to be loaded.
        p_sJarName - The Jar name where the bundle can be found (Not Used).
        p_sLocale - The locale needed to be loaded.
        envHome - The environment variable (Not Used).
        cl - The ClassLoader for reaching resources (used by JMS Client).
        Returns:
        ResourceBundle
      • initializeMessageLoader

        protected static void initializeMessageLoader()
        Calls wmResourceBundleLoader methods to add directories to the directory list.