[jboss-as7-dev] Read sub-model operation question
David M. Lloyd
david.lloyd at redhat.com
Tue Jan 11 11:19:39 EST 2011
On 01/11/2011 08:11 AM, Brian Stansberry wrote:
> On 1/11/11 7:36 AM, Kabir Khan wrote:
>> Also, I am not clear on what to return if recursive == false?
>>
>
> My thinking was:
>
> {
> "name" => "Profile A",
> "subsystem" => {
> "jmx" => {},
> "web" => {}
> }
> }
I'd say:
{
"name" => "Profile A",
"subsystem" => {
"jmx" => undefined,
"web" => undefined
}
}
That looks less like there's nothing there, and more like it just hasn't
been grabbed yet. Users can still set the result on the node, the same
as if they got {} back. The difference is, {} could actually *be* the
content so you can't tell if you have gotten the content but it was
empty, or you haven't gotten the content yet.
--
- DML
More information about the jboss-as7-dev
mailing list