[jboss-as7-dev] DMR: treating key/value pairs right
Heiko Braun
hbraun at redhat.com
Fri Jul 22 06:49:49 EDT 2011
We got a lot of places where key/value pairs are used as part of the configuration:
- system properties
- xa data source properties
- resource adapter config properties
- (put your subsystem here)
The most reasonable way to represent these properties within the model
is to make them sub resources which can be addressed on their own, i.e:
[standalone at localhost:9999 /] /system-property=hostType:read-resource
{
"outcome" => "success",
"result" => {"value" => "staging"}
}
why? because if they are represented like sub resources,
the implicit add/remove operations automatically apply:
[standalone at localhost:9999 /] /system-property=newProperty:add(value=someValue)
{"outcome" => "success"}
The same is true for querying their value as shown above.
This is request to unify the usage key/value pair configuration options like described above.
I'll go ahead and create JIRA's for the cases that I encounter and ask you kindly to change all occurrences
to the sub resource model representation.
Ike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20110722/d9625724/attachment.html
More information about the jboss-as7-dev
mailing list