com.bankframe.localization
Class BankFrameMessageResource

java.lang.Object
  extended bycom.bankframe.services.resource.BaseBankFrameResource
      extended bycom.bankframe.services.resource.BankFrameResourceBundle
          extended bycom.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

Field Summary
static java.lang.String BANKFRAME_MESSAGE_FILE
           
static java.lang.String DEFAULT_MESSAGE_FILE
           
 
Fields inherited from class com.bankframe.services.resource.BankFrameResourceBundle
BANKFRAME_RESOURCE_NAME
 
Fields inherited from class com.bankframe.services.resource.BaseBankFrameResource
DEFAULT_REFRESH_INTERVAL, REFRESH_INTERVAL_KEY
 
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
 

Field Detail

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
Method Detail

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 file
locale - 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 message
locale - the locale
Returns:
the localized messge

reset

public static void reset()
This method clears the cache



Copyright © 2004 Siebel Systems, Inc. All rights reserved.