|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--audiojury.domain.ConfigBase | +--audiojury.action.ConfigManager
Wrapper for the ConfigPlugin
.
It mostly forwards all requests to the plugin.
The class implements the Singleton design pattern, which means there is only one instance of this class. This is necessary to make concurrent access to configuration settings impossible.
ConfigPlugin
Field Summary |
Fields inherited from class audiojury.domain.ConfigBase |
APPLICATION_ROOT, BROWSE_SOUND_PATH, PERSON_INFO, PROJECTS_PATH, REPORT_PATH, RESULT_PATH, SHARED_PATH |
Method Summary | |
static ConfigManager |
getUniqueInstance()
Enforces the Singleton design pattern by always returning the same instance of ConfigManager . |
java.lang.String |
getValue(int type)
Gets the value of a a configuration parameter. |
java.lang.String[] |
getValues(int type)
Gets the values of a a multi-valued configuration parameter. |
void |
saveConfiguration()
Saves the configuration settings. |
void |
setConfigPlugin(ConfigPlugin realSubject)
Use this method to choose which storage plugin to use. |
void |
setValue(int type,
java.lang.String value)
Sets a configuration parameter. |
void |
setValues(int type,
java.lang.String[] values)
Sets a multi-valued configuration parameter. |
Methods inherited from class audiojury.domain.ConfigBase |
getName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setConfigPlugin(ConfigPlugin realSubject)
realSubject
- The desired ConfigPlugin
.public void setValues(int type, java.lang.String[] values)
setValues
in interface ConfigProcessing
type
- A parameter constant as defined in ConfigBase
.values
- The values to assign to the configuration parameter.public java.lang.String[] getValues(int type)
getValues
in interface ConfigProcessing
type
- A parameter identifier as defined in ConfigBase
.
public void setValue(int type, java.lang.String value)
setValue
in interface ConfigProcessing
type
- A parameter identifier as defined in ConfigBase
.value
- The value to assign to the configuration parameter.public java.lang.String getValue(int type)
getValue
in interface ConfigProcessing
type
- A parameter identifier as defined in ConfigBase
.
public static ConfigManager getUniqueInstance()
ConfigManager
. This should be used instead of
a constructor.
public void saveConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |