Clients repeatedly invokes setProperty(name,value) in order to invoke setters on the Object specified in the constructor.
Usage:
PropertySetter ps(anObject);
ps.set("name", "Joe");
ps.set("age", "32");
ps.set("isMale", "true");
will cause the invocations anObject->setOption("name", "Joe"), anObject->setOption("age", "32") and anObject->setOption("isMale", "true") if the spi::OptionHandler interface is supported by anObject.
Public Member Functions | |
| PropertySetter (const helpers::ObjectPtr &obj) | |
| Create a new PropertySetter for the specified Object. | |
| void | setProperties (helpers::Properties &properties, const LogString &prefix, log4cxx::helpers::Pool &p) |
Set the properites for the object that match the prefix passed as parameter. | |
| void | setProperty (const LogString &option, const LogString &value, log4cxx::helpers::Pool &p) |
| Set a property on this PropertySetter's Object. | |
| void | activate (log4cxx::helpers::Pool &p) |
Static Public Member Functions | |
| static void | setProperties (const helpers::ObjectPtr &obj, helpers::Properties &properties, const LogString &prefix, log4cxx::helpers::Pool &p) |
| Set the properties of an object passed as a parameter in one go. | |
Protected Attributes | |
| helpers::ObjectPtr | obj |
|
|
Create a new PropertySetter for the specified Object. This is done in prepartion for invoking setProperty one or more times.
|
|
|
|
|
||||||||||||||||
|
Set the properites for the object that match the
|
|
||||||||||||||||||||
|
Set the properties of an object passed as a parameter in one go.
The
|
|
||||||||||||||||
|
Set a property on this PropertySetter's Object. If the underlying Object supports the spi::OptionHandler interface, the setOption method is called.
|
|
|
|