It is fine for me if if the templates are in a particular order. Will it be something like placing several <structure map-as="..."> in a mapping? That would be great!

By the way, traits are a quite clever solution to the problem of multiple inheritance, in which you can create a class that is composed of several traits, a trait being like an abstract class which is not allowed to have state (instance variables). It seems there is only an implementation for Smalltalk right now, and it is possible to emulate traits using AspectJ, but the syntax is not that nice.


Dennis Sosnoski wrote:

I'm not sure exactly what you mean by the "traits" approach. The <template> is basically a reusable binding definition structure that's defined with a particular object type. You should be able to define multiple <template>s for the same object type and combine them in a <mapping> or <structure>, but they'd be in a particular order (or unordered and optional). That's getting into some pretty wierd code generation, though, so no guarantees.

 - Dennis

Guillaume Pothier wrote:

Right now there's no good way to share components of binding definitions (the label/using approach is fairly ugly, and probably still broken in some edge cases), so I think people end up using <mapping> more than they should. For beta 4 I'll be adding a <template> element to the binding definition to allow for reusable structures without the overhead of a <mapping> or the


Will the <template> element be similar to the "traits" approach, ie, a mapping can combine any number of templates? That would be real great!






-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to