[jbosstools-dev] [jboss-as7-dev] Modeling Management Objects (was: birth of "console ui" in eclipse)

Jason T. Greene jason.greene at redhat.com
Mon Mar 5 11:20:14 EST 2012


On 3/5/12 8:49 AM, Rob Cernich wrote:
>
> [snip...]
>
>>> While it may not generate the code for you, the AutoBean framework
>>> allows you to wrap the underlying JSON with an API.  Continuing
>>> the above example:
>>>
>>>   interface Bar {
>>>     String getFoo();
>>>     void setFoo(String value);
>>>   }
>>>   interface BarBeanFactory extends AutoBeanFactory {
>>>     AutoBean newBar();
>>>   }
>>>   Bar bar = AutoBeanCodex.decode(barBeanFactory, Bar.class,
>>>   barNode.toJSONString(true)).as();
>>
>> I take it this imposes a particular data format?
>
> Yes.  JSON.

Right, but does it require a particular structure, or can you map say 
something to a map instead of an object etc?


-- 
Jason T. Greene
JBoss AS Lead / EAP Platform Architect
JBoss, a division of Red Hat


More information about the jbosstools-dev mailing list