|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdiseq.util.SettingUtil
Class for fetching all application settings.
Method Summary | |
boolean |
getBooleanSetting(java.lang.String settingKey)
|
static SettingUtil |
getInstance()
Singleton implementation |
int |
getIntSetting(java.lang.String settingKey)
|
java.lang.String |
getSetting(java.lang.String settingKey)
Retrieves the application and system setting. |
java.lang.String |
getSetting(java.lang.String settingKey,
java.lang.String defaultValue)
|
protected java.io.InputStream |
getSettingStream()
Creates an InputStream to read the property file containing all the
settings defined for the applicaton. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static SettingUtil getInstance()
SettingUtil
public java.lang.String getSetting(java.lang.String settingKey)
settingKey
- used to look up settings
java.lang.RuntimeException
- if setting doesn't existspublic java.lang.String getSetting(java.lang.String settingKey, java.lang.String defaultValue)
settingKey
- key to setting defined in property filedefaultValue
- default value if the key isn't found
public int getIntSetting(java.lang.String settingKey)
settingKey
- key to setting defined in property file
java.lang.NumberFormatException
- Failed to parse an integer valuepublic boolean getBooleanSetting(java.lang.String settingKey)
settingKey
- key to setting defined in property file
protected java.io.InputStream getSettingStream() throws java.io.IOException
InputStream
to read the property file containing all the
settings defined for the applicaton.
java.io.IOException
- when reading the file fails.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |