|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.servlet.sip.utilities.FileBasedConfiguration
public class FileBasedConfiguration
Class providing support for access to configuration stored in the filesystem in the form of java.util.Properties simple line-oriented format. The file can be specified via JVM parameter org.echarts.servlet.sip.configuration.filename, and defaults to "configuration.properties" in the working directory.
Field Summary | |
---|---|
static java.lang.String |
CONFIGURATION_PROPERTIES_FILENAME
|
Method Summary | |
---|---|
static FileBasedConfiguration |
getInstance()
|
java.lang.String |
getParameter(java.lang.String paramName)
Gets the value of specified parameter as specified in configuration file. |
java.lang.String |
getParameter(java.lang.String paramName,
java.lang.String defaultValue)
Gets the value of specified parameter as specified in configuration file. |
java.util.List<java.lang.String> |
getParameterNames()
Gets a list of all parameter names specified in configuration file. |
void |
refresh()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIGURATION_PROPERTIES_FILENAME
Method Detail |
---|
public static FileBasedConfiguration getInstance()
public void refresh()
public java.lang.String getParameter(java.lang.String paramName)
paramName
- name of desired parameter
public java.lang.String getParameter(java.lang.String paramName, java.lang.String defaultValue)
paramName
- name of desired parameterdefaultValue
- default value to use if parameter is not present in file
public java.util.List<java.lang.String> getParameterNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |