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