cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: Bean generator
Date Fri, 12 Apr 2002 14:58:01 GMT
On 12 Apr 2002, Nick Airey wrote:

>
> Hello everyone,
>
> I think it would be useful to have a "BeanGenerator", which basically
> generates SAX events based on a java bean.
>
> I already have written several of these, customized according to various
> java bean structures, but I see I am going to need more of them, so it
> would be cool to replace all of these generators with a single generator
> which uses bean introspection to generate SAX events.
>
>
> In my case, the beans in question are value objects returned from EJB
> middleware, and cocoon is doing all the presentation layer processing.
>
>
>
> My question is: does something like this exist already? I suspect not.

IIRC the Axis (http://xml.apache.org/axis) project alsready has a
BeanSerializer (as well as BeadDeserializerFactory). I'm not shure if it
generates SAX events.

Giacomo


>
> If not, my second question is: does anyone know a good (open) framework
> for converting beans to SAX events. I have been doing some research, and
> have come across several projects:
>
> Betwixt
> (http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/betwixt/)
> Looks promising, but doesn't (yet) have a SAX writer.
>
> Domify:
> (http://domify.sourceforge.net/)
>
> Hammer:
> (http://www.csse.monash.edu.au/~bren/Hammer/)
> Stars in the WROX "Java XML" book, published 2001, chapter 6.
>
>
> Can anyone comment on which would be a good way to go. Of course, if
> this is considered to be generally useful, I would be happy to donate
> the code for the resulting generator to the cocoon project.
>
>
> Nick.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message