com.ibm.websphere.samples.asynchbeans.wstrader.pricegen
Class PriceGenConfig
java.lang.Object
com.ibm.websphere.samples.asynchbeans.wstrader.pricegen.PriceGenConfig
public class PriceGenConfig
- extends java.lang.Object
Various configuration information and constants for the application.
Field Summary |
static java.lang.String |
AS_NAME
The name of the Asynch Bean used for this Price Generator |
static java.lang.String |
REGISTRY_KEY_PRICEGEN_AUTOSTART
If true, automatically start the price generator when the application starts. |
Method Summary |
static java.lang.String |
getAppProperty(java.lang.String key,
java.lang.String dftValue)
Retrive a property from the application's configuration file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AS_NAME
public static final java.lang.String AS_NAME
- The name of the Asynch Bean used for this Price Generator
- See Also:
- Constant Field Values
REGISTRY_KEY_PRICEGEN_AUTOSTART
public static java.lang.String REGISTRY_KEY_PRICEGEN_AUTOSTART
- If true, automatically start the price generator when the application starts.
PriceGenConfig
public PriceGenConfig()
getAppProperty
public static java.lang.String getAppProperty(java.lang.String key,
java.lang.String dftValue)
throws java.io.IOException,
java.io.FileNotFoundException
- Retrive a property from the application's configuration file.
- Parameters:
key
- Property to retrievedftValue
- Default value to return if the property could not be retrieved.
- Returns:
- Returns the value of the property or the default value.
- Throws:
java.io.IOException
java.io.FileNotFoundException