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

Kabir Khan kabir.khan at jboss.com
Tue Jan 11 12:46:59 EST 2011


>>> 
>>>> 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.


That's what I interpreted your answer as ;-)



More information about the jboss-as7-dev mailing list