Hi all,

 

I’ve got a small problem concerning the binding file. I already searched for it in the archives but couldn’t find an answer.

 

I’ve written a class myself called myclass which I want some classes to extend using the source generator. To achieve this, I tried the following:

<cbf:elementBinding name="SomeClass">

                        <cbf:java-class package="my.package">

                                    <cbf:extends>my.package.base.MyClass</cbf:extends>

                                    <cbf:implements>my.package.base.MyInterface</cbf:implements>

                        </cbf:java-class>

</cbf:elementBinding>

But when I use this, all the descriptors also extend my.package.base.MyClassDescriptor which of course doesn’t exists and results in a compilation error.

 

 

Next thing I saw somewhere on the mailing list was the following:

<cbf:elementBinding name="SomeClass">

                        <cbf:java-class package="my.package" extends=” my.package.base.MyClass”>

                                    <cbf:implements>my.package.base.MyInterface</cbf:implements>

                        </cbf:java-class>

</cbf:elementBinding>

Using this approach, the generated classes don’t extend the MyClass at all and neither does it generate an error when ‘SourceGenerating’…

 

Do you guys have a clue?

 

Thanks in advance,

Ronald

Reply via email to