Static Public Member Functions | |
bool | toBoolean (const String &value, bool dEfault) |
String | findAndSubst (const String &key, Properties &props) |
String | substVars (const String &val, Properties &props) |
String | getSystemProperty (const String &key, const String &def) |
ObjectPtr | instantiateByClassName (const String &className, const Class &superClass, const ObjectPtr &defaultValue) |
void | selectAndConfigure (const String &configFileName, const String &clazz, spi::LoggerRepositoryPtr &hierarchy) |
|
Find the value corresponding to |
|
|
|
Instantiate an object given a class name. Check that the
|
|
Configure log4cxx given a configFileName. The configFileName must point to a file which will be interpreted by a new instance of a log4cxx configurator.
All configurations steps are taken on the
|
|
Perform variable substitution in string The variable substitution delimeters are ${ and }. For example, if the System properties contains "key=value", then the call String s = OptionConverter.substituteVars("Value of key is ${key}.");
will set the variable
If no value could be found for the specified key, then the For example, if system propeties contains no value for the key "inexistentKey", then the call
String s = OptionConverter.subsVars("Value of inexistentKey is [${inexistentKey}]");will set s to "Value of inexistentKey is []"
An IllegalArgumentException is thrown if
|
|
If Case of value is unimportant. |