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.
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 |
BANKFRAME_MESSAGE_FILE
public static final String BANKFRAME_MESSAGE_FILE
- See Also:
- Constant Field Values
DEFAULT_MESSAGE_FILE
public static final String DEFAULT_MESSAGE_FILE
- See Also:
- Constant Field Values
getInstance
public static BankFrameMessageResource getInstance(String messageFile,
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 String getLocalizedMessage(String key,
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 © 2005, 2007, Oracle. All rights reserved.