version 1.19, 2004/06/01 11:21:55
|
version 1.20, 2004/06/09 16:08:29
|
|
|
| |
private: | private: |
| |
// This is meant to be a singleton, so the constructor |
/** |
// and the destructor are made private |
Refers to the singleton ConfigManager instance. If no ConfigManager |
|
instance has been constructed, this value is null. |
|
*/ |
static ConfigManager* _instance; | static ConfigManager* _instance; |
| |
| |
|
|
*/ | */ |
static const String PEGASUS_HOME_DEFAULT; | static const String PEGASUS_HOME_DEFAULT; |
| |
/** |
|
Constants representing the command line options. |
|
*/ |
|
static const char OPTION_TRACE; |
|
|
|
static const char OPTION_LOG_TRACE; |
|
|
|
static const char OPTION_DAEMON; |
|
|
|
| |
/** | /** |
Property Owners | Property Owners |
|
|
static FileSystemPropertyOwner* fileSystemOwner; | static FileSystemPropertyOwner* fileSystemOwner; |
| |
static ProviderDirPropertyOwner* providerDirOwner; | static ProviderDirPropertyOwner* providerDirOwner; |
|
|
|
/** |
|
Boolean indicating whether configuration data should be read from |
|
and persisted to configuration files. If true, all operations are |
|
functional and updates are written to the configuration files. If |
|
false, the ConfigManager does not read to or write from configuration |
|
files. In this case, methods that specifically implicate |
|
configuration files must not be used. The default value is false. |
|
*/ |
|
Boolean useConfigFiles; |
|
|
/** | /** |
Construct the singleton instance of the ConfigManager and return a |
Get a reference to the singleton ConfigManager instance. If no |
pointer to that instance. |
ConfigManager instance exists, construct one. |
*/ | */ |
static ConfigManager* getInstance(); | static ConfigManager* getInstance(); |
| |
| |
/** | /** |
|
Initialize the current value of a config property. |
|
|
|
@param propertyName The name of the property to initialize (e.g., |
|
"httpPort"). |
|
@param propertyValue The initial value of the property. |
|
@return true if the property found and initialized, else false. |
|
|
|
@exception UnrecognizedConfigProperty if property is not defined. |
|
@exception InvalidPropertyValue if property value is not valid. |
|
*/ |
|
Boolean initCurrentValue( |
|
const String& name, |
|
const String& value); |
|
//throw (InvalidPropertyValue, UnrecognizedConfigProperty); |
|
|
|
/** |
Update current value of a property. | Update current value of a property. |
| |
@param propertyName The name of the property to update (eg. "httpPort"). | @param propertyName The name of the property to update (eg. "httpPort"). |
|
|
Get a list of all the property names. | Get a list of all the property names. |
| |
@param propertyNames List containing all the property names. | @param propertyNames List containing all the property names. |
*/ |
@param includeHiddenProperties Boolean indicating whether hidden |
void getAllPropertyNames(Array<String>& propertyNames); |
properties should be included in the |
|
returned list. |
|
*/ |
|
void getAllPropertyNames( |
|
Array<String>& propertyNames, |
|
Boolean includeHiddenProperties); |
| |
/** | /** |
Merges the config properties from the specified configuration files. | Merges the config properties from the specified configuration files. |