You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Lyndon Samson <sa...@dodo.net.au> on 2003/09/10 10:36:31 UTC
Re[2]: [XML][Deployment]POJO design?
You could of course just use properties, with overlay accessor classes providing
particular views and type safety.
Just flatten
<des>
<item>
<val>1</val>
</item>
</des>
to
des.item.1.val.1=1
Re: [XML][Deployment]POJO design?
Posted by Greg Wilkins <gr...@mortbay.com>.
Lyndon Samson wrote:
> You could of course just use properties, with overlay accessor classes providing
> particular views and type safety.
The starting point of all this.... was that it was decided that we want POJOs as
the in-memory representation of DDs. So properties would not meet that requirement.
I'm not the best one to say why we want POJOs - I was happy using DOM :-)
But look for the "parsing XML" discussion last week for the reasoning.
> Just flatten
> <des>
> <item>
> <val>1</val>
> </item>
> </des>
>
> to
>
> des.item.1.val.1=1