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
-
getBoolean(String)
- Function to return the specified boolean value
-
getConfigFileName()
-
-
getCreditCardMessagesBase()
- Gets the credit card messages resource bundle base name.
-
getDouble(String)
- Function to return the specified double value
-
getInt(String)
- Function to return the specifed int value
-
getLong(String)
- Function to return the specified long value
-
getString(String)
- Function to return the specified String value
-
getValidatorMessagesBase()
- Gets the validator messages resource bundle base name.
-
init()
-
-
Instance()
- Lazily instantiate a validator and return it.
-
restart()
- Restarts the AppConfig - allows external start and stop of the ConfigUpdater thread.
-
setBoolean(String, boolean)
- Function to set the specified boolean value
-
setConfigFileName(String)
-
-
setDouble(String, double)
- Function to set the specifed double value
-
setInt(String, int)
- Function to set the specified int value
-
setLong(String, long)
- Function to set the specified long value
-
setString(String, String)
- Function to set the specified String value
-
terminate()
- Terminates the AppConfig - allows external start and stop of the ConfigUpdater thread.
getBoolean
public boolean getBoolean(String key) throws Exception, ConfigValueNotFoundException
- Function to return the specified boolean value
- Returns:
- boolean value for the specified key
getConfigFileName
public static String getConfigFileName()
getCreditCardMessagesBase
public static String getCreditCardMessagesBase()
- Gets the credit card messages resource bundle base name.
getDouble
public double getDouble(String key) throws Exception, ConfigValueNotFoundException
- Function to return the specified double value
- Returns:
- double value for the specified key
getInt
public int getInt(String key) throws Exception, ConfigValueNotFoundException
- Function to return the specifed int value
- Returns:
- int value for the specified key
getLong
public long getLong(String key) throws Exception, ConfigValueNotFoundException
- Function to return the specified long value
- Returns:
- long value for the specified key
getString
public String getString(String key) throws Exception, ConfigValueNotFoundException
- Function to return the specified String value
- Returns:
- String value for the specified key
getValidatorMessagesBase
public static String getValidatorMessagesBase()
- Gets the validator messages resource bundle base name.
init
public void init() throws Exception
Instance
public static AppConfig Instance() throws Exception
- Lazily instantiate a validator and return it.
restart
public void restart()
- Restarts the AppConfig - allows external start and stop of the ConfigUpdater thread.
setBoolean
public void setBoolean(String key,
boolean val)
- Function to set the specified boolean value
setConfigFileName
public static void setConfigFileName(String cfName)
setDouble
public void setDouble(String key,
double val)
- Function to set the specifed double value
setInt
public void setInt(String key,
int val)
- Function to set the specified int value
setLong
public void setLong(String key,
long val)
- Function to set the specified long value
setString
public void setString(String key,
String val)
- Function to set the specified String value
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