com.bankframe.localization
Class BankFrameMessageResource
java.lang.Object
com.bankframe.services.resource.BaseBankFrameResource
com.bankframe.services.resource.BankFrameResourceBundle
com.bankframe.localization.BankFrameMessageResource
- All Implemented Interfaces:
- BankFrameResource
- public class BankFrameMessageResource
- extends BankFrameResourceBundle
This class reads messages from the messages file. The message file to use is
specified by the BankFrameResourceCache.MESSAGE_FILE
setting.
- Author:
- ETU
Method Summary |
static BankFrameMessageResource |
getInstance(java.lang.String messageFile,
java.util.Locale locale)
This method gets the correct BankFrameMessageResource instance for the
specified file and locale |
static java.lang.String |
getLocalizedMessage(java.lang.String key,
java.util.Locale locale)
This method gets the localized message for the specified key and locale. |
static void |
reset()
This method clears the cache |
Methods inherited from class com.bankframe.services.resource.BaseBankFrameResource |
get, getBoolean, getDescription, getDescription, getDouble, getInteger, getLong, getString, getSubset, getUrl, keys, put, remove, remove, removeAll, removeSubset, size |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BANKFRAME_MESSAGE_FILE
public static final java.lang.String BANKFRAME_MESSAGE_FILE
- See Also:
- Constant Field Values
DEFAULT_MESSAGE_FILE
public static final java.lang.String DEFAULT_MESSAGE_FILE
- See Also:
- Constant Field Values
getInstance
public static BankFrameMessageResource getInstance(java.lang.String messageFile,
java.util.Locale locale)
- This method gets the correct BankFrameMessageResource instance for the
specified file and locale
- Parameters:
messageFile
- The name of the BankFrameMessageResource filelocale
- The locale
- Returns:
- a BankFrameMessageResourceInstance
getLocalizedMessage
public static java.lang.String getLocalizedMessage(java.lang.String key,
java.util.Locale locale)
- This method gets the localized message for the specified key and locale.
- Parameters:
key
- the name of the localized messagelocale
- the locale
- Returns:
- the localized messge
reset
public static void reset()
- This method clears the cache
Copyright © 2004 Siebel Systems, Inc. All rights reserved.