commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin van den Bemt <mll...@mvdb.net>
Subject Re: [betwixt] Mapping for interface instead of class
Date Wed, 27 Aug 2003 15:38:42 GMT
Specify the class attribute in the element element.
(eg <element name="hi" property"hi" class="myinterface"/>
For more on .betwixt files, see the site docs 

Mvgr,
Martin


On Wed, 2003-08-27 at 16:08, Christoph Gaffga wrote:
> > Creating beans from that will however still not work.
> > If you have Interface I and class A and B implementing I, betwixt cannot
> > figure out which class it was, unless we are actually putting the
> > getClass().getName() into the xml now (please forgive me not looking at
> > the code to check this), for the objects the be correctly recreated from
> > xml..
> 
> Yes, I understand this problem with reading beans. But my problem ist about
> writing EJB to XML. Because in this context I only know the Interface (the
> class (stub) is generated automatically). So, what I'm looking for is
> something like an I.betwixt-file to customize the output.
> 
> Any Ideas?
> 
> Regards
> Christoph
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
-- 
Martin van den Bemt <mllist@mvdb.net>
mvdb.com


Mime
View raw message