Package COM.activesw.api.client
Class MessageLoader
- java.lang.Object
-
- com.softwareag.g11n.util.wmResourceBundleLoader
-
- COM.activesw.api.client.MessageLoader
-
public class MessageLoader extends com.softwareag.g11n.util.wmResourceBundleLoader
This class provides the convenience wrapper for the Broker APIs and Tools.
-
-
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
-
-
-
-
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.
-
-