[jboss-as7-dev] Read sub-model operation question

Brian Stansberry brian.stansberry at redhat.com
Tue Jan 11 11:31:58 EST 2011


On 1/11/11 10:19 AM, David M. Lloyd wrote:
> 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.
>

Thanks, David. Yes, that's what I meant. I need to stop guessing at the 
string representations.

-- 
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat



More information about the jboss-as7-dev mailing list