cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeep Fernando <>
Subject dynamic SDO databinding to wsdl2Java-CXF.
Date Thu, 11 Jun 2009 15:00:13 GMT
Hi daniel,

Im doing gsoc project on wsdl2java tooling in tuscany. Now im working on
adding dynamic sdo databinding to CXF tool.

As i came to know dynamic sdo is pretty straight forward. Here[1] is a code
sample found in the tuscany where it generates
classes. (standalone generator).

As you suggested i went through the XMLBeansDatabinding code found in CXF.
So according to my understainding i just have to
use the code found in tuscany sdo generator appropiately between
 initialize()  &

methods found in databindingProfile.

what i cant understand is there is a Classcollector define in a inner class
inside the generate() method of the XMLBeanstoolingDatabinding

public Writer createSourceFile(String typename) throws IOException {
>                     String tn = typename;
>                     if (tn.contains("$")) {
>                         tn = tn.substring(0, tn.indexOf('$'));
>                     }
>                     String pkg = tn.substring(0, tn.lastIndexOf('.'));
>                     tn = tn.substring(tn.lastIndexOf('.') + 1);
>                    classCollector.addTypesClassName(pkg, tn, pkg + "." +
> tn);  <<<<<<<  here
>                     return super.createSourceFile(typename);
>                 }
>             };

can you please explain the usage of that that.

Thanks in advance,
Pradeep Fernando.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message