com.ibm.websphere.i18n.localizabletext
Class LocalizableConfiguration

java.lang.Object
  |
  +--com.ibm.websphere.i18n.localizabletext.LocalizableConfiguration

public class LocalizableConfiguration
extends java.lang.Object

This class is used to control overall configuration information for the LocalizableText function.

Since this is a single static class, the setting are per JVM.


Field Summary
static int LOCAL
          Constant to be used with the setResourceBundleSearchOrder and getResourceBundleSearchOrder methods that tells the LocalizableText function to look for the Resource Bundles on this local machine.
static int REMOTE
          Constant to be used with the setResourceBundleSearchOrder and getResourceBundleSearchOrder methods that tells the LocalizableText function to look for the Resource Bundles on a remote server.
 
Constructor Summary
LocalizableConfiguration()
           
 
Method Summary
static java.lang.String getInitialContextPropertyValue()
          Returns the current Initial Context Property Value string used for this JVM.
static int getResourceBundleSearchOrder()
          Returns the current Resource Bundle Search Order for this JVM.
static void setInitialContextPropertyValue(java.lang.String value)
          Tells the LocalizableText function what Initial Context Property Value string to use when finding the remote server that contains the Resource Bundles.
static void setResourceBundleSearchOrder(int ResourceBundleSearchOrder)
          Tells the LocalizableText function where to look for the Resource Bundles.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REMOTE

public static final int REMOTE
Constant to be used with the setResourceBundleSearchOrder and getResourceBundleSearchOrder methods that tells the LocalizableText function to look for the Resource Bundles on a remote server. This is the default setting.

LOCAL

public static final int LOCAL
Constant to be used with the setResourceBundleSearchOrder and getResourceBundleSearchOrder methods that tells the LocalizableText function to look for the Resource Bundles on this local machine.
Constructor Detail

LocalizableConfiguration

public LocalizableConfiguration()
Method Detail

getInitialContextPropertyValue

public static java.lang.String getInitialContextPropertyValue()
Returns the current Initial Context Property Value string used for this JVM.

Returns:
String Initial Context Property Value string used to finding the remote server that contains the Resource Bundles.

getResourceBundleSearchOrder

public static int getResourceBundleSearchOrder()
Returns the current Resource Bundle Search Order for this JVM.
Returns:
integer constants from this class (REMOTE, LOCAL, ...)

setInitialContextPropertyValue

public static void setInitialContextPropertyValue(java.lang.String value)
Tells the LocalizableText function what Initial Context Property Value string to use when finding the remote server that contains the Resource Bundles.
This is only applicable when the Resource Bundle Search Order is set to REMOTE.
Since this is a single static class, the setting are per JVM.
Parameters:
value - String to use as the Initial Context Property Value for this JVM.

setResourceBundleSearchOrder

public static void setResourceBundleSearchOrder(int ResourceBundleSearchOrder)
                                         throws java.lang.IllegalArgumentException
Tells the LocalizableText function where to look for the Resource Bundles.
Since this is a single static class, the setting is per JVM.
Parameters:
RemoteSearchOrder - Use constants from this class (REMOTE, LOCAL, ...)