Hi,

You can use the SDO tools from command line (org.apache.tuscany.sdo.generate.XSD2JavaGenerator.java) or maven to generate SDO interfaces/classes from an XSD. The java\sca\modules\databinding-sdo\pom.xml is an example to use the sdo maven plugin.

Thanks,
Raymond

----- Original Message ----- From: "litaojian" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 04, 2007 7:06 PM
Subject: Re: Re: How can i define a SDO Type with my custom interface ?


Hi Raymond ,

But how to generate the XXXFactory , could you give me a sample code  ?

Thanks,





litaojian
2007-07-05



发件人: Raymond Feng
发送时间: 2007-07-05 06:57:25
收件人: [email protected]; [EMAIL PROTECTED]
抄送:
主题: Re: How can i define a SDO Type with my custom interface ?

Hi,

If you are looking for a way to register the static types, you can use:

HelperContext helperContext = HelperProvider.getDefaultContext();
XXXFactory.INSTANCE.register(HelperContext); // XXXFactory is the generated
factory interface

Thanks,
Raymond

----- Original Message ----- From: "litaojian" <[EMAIL PROTECTED] >
To:  <[email protected] >
Cc: "rfeng"  <[EMAIL PROTECTED] >
Sent: Wednesday, July 04, 2007 2:37 AM
Subject: How can i define a SDO Type with my custom interface ?


Hi All ,
I want to create a type that can be assicated with my java interface
,
then I could get the type as follow :

Type type = TypeHelper.INSTANCE.getType(interfaceClass);



Best Regards




litaojian
2007-07-04



---------------------------------------------------------------------
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]

Reply via email to