Re: Custom static SDOs with formatter and validation logic

2007-03-24 Thread Frank Budinsky
Hi Erich,

The Tuscany SDO generator is currently reusing the code generator 
framework from Eclipse EMF project. If you look at the EMF generator, 
you'll see that it's very powerful and customizable. In Tuscany all we've 
done is create a simple command line invocation of the EMF generator, 
using our own templates, and a few basic options.

One thing we don't support is regen/merge because the EMF merger prereqs 
the Eclipse JDT, which we didn't want to drag into Tuscany as a 
dependency. If someone is willing to write a standalone merger for 
Tuscany, we could support regen.

Other things like generating a different base class or adding methods, are 
 supported in EMF but we don't have a way do it in with the Tuscany 
generator yet. If you'd be willing to help get some of this function into 
Tuscany, I'm sure a lot of people would be interested in it.

The bottom line is that real sophisticated tooling is outside of the scope 
of the Tuscany project. Another possible direction for this is for some 
Eclipse project to provide a fancy GUI-generator (and possibly other 
tools) for developing Tuscany SDO applications. It would be nice to see 
something like that get started.

Thanks,
Frank

Erich Rueede [EMAIL PROTECTED] wrote on 03/24/2007 10:14:20 AM:

 Hi Kelvin,
 
 if I understand you correctly, there is currently no
 supported way of extending generated SDO
 implementation classes:
 1) I cannot have my own superclass of a generated SDO
 class since this is already occupied
 2) I cannot (yet) simply subclass a generated SDO
 class, this may be addressed in TUSCANY-513
 
 As a consequence I would have to modify the generated
 SDO implementation class in order to offer custom
 formatter and validation logic!? Is there eventually a
 way to inject code using annotations? Or is it
 possible to re-generate and prevent override of custom
 code (merge)?
 
 Thanks Erich
 --- kelvin goodson [EMAIL PROTECTED] wrote:
 
  Erich,
there's a number of ways you could be trying to
  extend SDO generated
  classes.  You might be wanting to make a new SDO
  Type which uses the
  generated base class as an SDO basetype.  If so then
  that's the subject of
  http://issues.apache.org/jira/browse/TUSCANY-513, 
  which I was hoping to
  address at one time,  but haven't got to it yet.  If
  you want to override
  existing behaviour, I don't believe there are any
  specific hook points we
  expose to facilitate that currently, e.g. template
  method patterns.   If I
  understand correctly, the -storePattern is there due
  to the  store pattern
  that was implemented in the eclipse implementation
  of SDO 1.0 which was an
  implementation feature which allowed you to override
  the gets and sets of
  properties to a store instance (for example I used
  this to allow lazy
  instantiation using XML pull parsing) -- this kind
  of feature is coming up
  for discussion in the SDO 3 spec effort,  but isn't
  a functional part of the
  current Tuscany SDO implementation.
  Regards, Kelvin.
  
  
  On 19/03/07, Erich Rueede [EMAIL PROTECTED] wrote:
  
   Hi,
   I'm trying to figure out how I extend a generated
   static Java SDO with additional features, such as
  my
   own custom formatting an validation methods. Are
  there
   some hooks, that could be used for this subject?
  Will
   the generator's -storePattern eventually help?
   Thanks, Erich
  
  
  
  
  
 
 

   The fish are biting.
   Get more visitors on your site using Yahoo! Search
  Marketing.
  
 
 http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  
 
 
 
 
 

 8:00? 8:25? 8:40? Find a flick in no time 
 with the Yahoo! Search movie showtime shortcut.
 http://tools.search.yahoo.com/shortcuts/#news
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [SCA C++] Building from source on Windows

2007-03-24 Thread Andrew Borley

On 3/24/07, Todd Little [EMAIL PROTECTED] wrote:

Hi Andy,

Thanks for the information.  In regards to checking out the sources,
this is the error I get from subversion:

svn: In directory 'tuscany\sandbox\kgoodson\svnTest'
svn: Can't copy
'tuscany\sandbox\kgoodson\svnTest\.svn\tmp\text-base\Ghi.txt.svn-base'
to 'tuscany\sandbox\kgoodson\svnTest\.svn\tmp\Ghi.txt.tmp.tmp': The
system cannot find the file specified.

And after a pause, subversion exits.

Regards,
Todd



Hi Todd,

I have no idea what's going on there! You could try an svn cleanup
on your system, but it may not help. Luckily, for the C++ code, you
don't need to checkout the entire Tuscany tree - just the directories
under [1], so you can avoid Kelvin's sandbox!

Cheers
Andy

[1] http://svn.apache.org/repos/asf/incubator/tuscany/cpp

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]