Hi,

thanks for sharing your ideas ...

王在祥 wrote:
I am a beginner of OpenOffice and I am learning the SDK document now.

Instead, i found the mapping from IDL to java looks missing something:

1. the mapped Java classes contains less information than the IDL, By using the Java 5 annotations will solve this problem, and we can even write no IDL at all, and simply writing the Java classes, and using a tool to generate the IDL if neccessary.

We cannot use Java 5 features because we have to be compatible with older versions.


2. the Out/In Out parameter mapping is something strange. I think using a OutHolder<T> or InOutHolder<T> will be more clear
see above


3. No Service is mapped, this require the queryInterface called frequently. I think a Service can be mapped to an interface which may extends other interface or aggregate optional interface inside.
that 's true for old services but not for the new UNO ease of use extensions. See http://udk.openoffice.org/common/man/draft/multinherit.html for more details.


And more, i think there should be a util to generate the POJO mapping from exists IDL(Its better to include the documents in Java).

i am not sure if I understand you but with the new javamaker tool we generate directly Java class files from the type library. The type library is currently necessary for the UNO runtime to get the necessary type information (Basic, C++). Yes we have thought about a TypeProvider who works on IDL or better on Java class files directly but haven't implement it until now.

Juergen





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

Reply via email to