All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ups.xmlsdk.util.config.AppConfig

java.lang.Object
   |
   +----com.ups.xmlsdk.util.config.AppConfig

public class AppConfig
extends Object
implements LogDefs

Method Index

 o getBoolean(String)
Function to return the specified boolean value
 o getConfigFileName()
 o getCreditCardMessagesBase()
Gets the credit card messages resource bundle base name.
 o getDouble(String)
Function to return the specified double value
 o getInt(String)
Function to return the specifed int value
 o getLong(String)
Function to return the specified long value
 o getString(String)
Function to return the specified String value
 o getValidatorMessagesBase()
Gets the validator messages resource bundle base name.
 o init()
 o Instance()
Lazily instantiate a validator and return it.
 o restart()
Restarts the AppConfig - allows external start and stop of the ConfigUpdater thread.
 o setBoolean(String, boolean)
Function to set the specified boolean value
 o setConfigFileName(String)
 o setDouble(String, double)
Function to set the specifed double value
 o setInt(String, int)
Function to set the specified int value
 o setLong(String, long)
Function to set the specified long value
 o setString(String, String)
Function to set the specified String value
 o terminate()
Terminates the AppConfig - allows external start and stop of the ConfigUpdater thread.

Methods

 o getBoolean
 public boolean getBoolean(String key) throws Exception, ConfigValueNotFoundException
Function to return the specified boolean value

Returns:
boolean value for the specified key
 o getConfigFileName
 public static String getConfigFileName()
 o getCreditCardMessagesBase
 public static String getCreditCardMessagesBase()
Gets the credit card messages resource bundle base name.

 o getDouble
 public double getDouble(String key) throws Exception, ConfigValueNotFoundException
Function to return the specified double value

Returns:
double value for the specified key
 o getInt
 public int getInt(String key) throws Exception, ConfigValueNotFoundException
Function to return the specifed int value

Returns:
int value for the specified key
 o getLong
 public long getLong(String key) throws Exception, ConfigValueNotFoundException
Function to return the specified long value

Returns:
long value for the specified key
 o getString
 public String getString(String key) throws Exception, ConfigValueNotFoundException
Function to return the specified String value

Returns:
String value for the specified key
 o getValidatorMessagesBase
 public static String getValidatorMessagesBase()
Gets the validator messages resource bundle base name.

 o init
 public void init() throws Exception
 o Instance
 public static AppConfig Instance() throws Exception
Lazily instantiate a validator and return it.

 o restart
 public void restart()
Restarts the AppConfig - allows external start and stop of the ConfigUpdater thread.

 o setBoolean
 public void setBoolean(String key,
                        boolean val)
Function to set the specified boolean value

 o setConfigFileName
 public static void setConfigFileName(String cfName)
 o setDouble
 public void setDouble(String key,
                       double val)
Function to set the specifed double value

 o setInt
 public void setInt(String key,
                    int val)
Function to set the specified int value

 o setLong
 public void setLong(String key,
                     long val)
Function to set the specified long value

 o setString
 public void setString(String key,
                       String val)
Function to set the specified String value

 o terminate
 public void terminate()
Terminates the AppConfig - allows external start and stop of the ConfigUpdater thread.


All Packages  Class Hierarchy  This Package  Previous  Next  Index