Frank Budinsky wrote:
> Nick,
> 
> Another thing that might be of interest is a bytecode SDO generator. If 
> you look in the Tuscany tools subproject, you'll see a command, 
> Interface2JavaGenerator, that given a Java interface generates an SDO 
> implementation class for it. It would be nice to have a similar command, 
> say Interface2ClassGenerator, that would generate a Java binary class (no 
> source). In the impl subproject, there is some prototype code that Jeremy 
> Boynes wrote (see 
> org.apache.tuscany.sdo.codegen.BytecodeInterfaceGenerator) that generates 
> interfaces using ASM. Although it isn't used for anything in the project, 
> it does illustrate how you might use ASM to generate a class.
> 

There's also some old code in my sandbox for generating impl classes
although its not hooked into the SDO runtime.

http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sdoproxy/
http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sdoproxy/src/main/java/org/apache/tuscany/sdo/impl/SDOGenerator.java?view=markup

--
Jeremy

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

Reply via email to