cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <u....@cbim.it>
Subject Re: [Proposal] Add "enum" basetype and convertor to Woody
Date Thu, 06 Nov 2003 23:10:25 GMT
Ugo Cei wrote:
> I'd like to add an "enum" basetype and "enum" convertor to Woody. Those 
> would work with types implementing Joshua Bloch's "typesafe enum" 
> pattern [1].

OK, since I had a little time on my hands, I went ahead and committed a 
first implementation. Basically, it works, but relies on the usage of 
reflection (see o.a.c.woody.datatype.convertor.EnumConvertor), which I 
don't like. A sprinkle of AOP would be nice here, maybe implemented via 
a dynamic proxy.

See http://localhost:8888/samples/woody/form2bean.flow for an example of 
usage.

	Ugo



Mime
View raw message