You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Voyer Henry <He...@loto-quebec.com> on 2004/08/16 22:14:06 UTC

RE : [Betwixt] Mapping Beans to Beans

Hi. 

Why use betwixt when u can use java proxy api?

In some case, beans with proxys are used in logging, security, redirection,
etc.

regards

-----Message d'origine-----
De : robert burrell donkin [mailto:robertburrelldonkin@blueyonder.co.uk] 
Envoyé : 16 août, 2004 16:05
À : Jakarta Commons Users List
Objet : Re: [Betwixt] Mapping Beans to Beans


(apologies for being very late to this party, i've not been too well 
recently)

not that i know of but it sounds like the kind of crazy tool that 
really needs to exist!

i'm sure that this kind of thing has lots of potential uses out there.

mix in a few functors and you'd have a really cool transformation 
engine.

there are times when folks are more than a little frustrated by 
beanutil's lack of expressiveness when it comes to mapping presentation 
to domain objects. reflection is slow but isn't usually the bottleneck 
in typical applications. if it is, then there are plenty of cool ways 
to fix it now (generate either source or bytecodes).

anyone else out there enthused by this idea?

- robert

On 13 Aug 2004, at 22:02, Garsombke, Franz wrote:

> I know that Betwixt is very good at mapping XML to Beans. Is there a
> way
> to use it for mapping beans to beans? If not, does anyone know of a 
> tool
> that allows for an XML mapping of one bean to another bean?
>
>
>
> Thanks in advance.
>
>
>
> Franz.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: RE : [Betwixt] Mapping Beans to Beans

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On 16 Aug 2004, at 21:14, Voyer Henry wrote:

> Hi.
>
> Why use betwixt when u can use java proxy api?

you can't use betwixt to map beans to beans (IMHO that's Franz's point 
:)

> In some case, beans with proxys are used in logging, security, 
> redirection,
> etc.

i'm not an expert on proxy's but AIUI (java) proxy's can only be used 
to create dynamic implementations for interfaces. i don't really see 
how this helps the problem of mapping beans-to-beans. IMHO there are 
several more-or-less well known methods by which the actual gluing can 
be performed (source generation, reflection, bytecode) but the real 
magic is in creating an expressive but concise way to specifying the 
mappings.

it seems to me that's there are plenty of lessons that can be learn 
from betwixt for a beans-to-beans mapping tool but it'd probably not be 
betwixt. in some ways it's an easier problem than mapping beans to xml 
and it'd probably be possible to have a reasonably featured 
implementation relatively quickly...

- robert


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org