Hi,

Ary Junior wrote:
Hi, im trying to registry two interfaces inside the same .idl file...

This isn't relevant. What is relevant is that you have two implementation classes in your jar file. BTW: You should register services or implementations, not interfaces.


these interfaces are implemented with Java to be used as add-in functions with Calc... My problem is with the manifest file inside the .jar... How can i define my two class (one for each interface)? If i define the manifest likes this:

RegistrationClassName: root.mymodule.NewInterface
RegistrationClassName: root.mymodule.MyInterface


I don't know the details of Java-UNO registration, but afaik there can be only one 'RegistrationClass' in a jar. That class is called upon to register the services this jar implements. It can easily register more than one implementation and it need not be identical to any one of the implementation classes. Reusing the implementation class to also serve as registration class really makes sense only if it is the only service implementation in that jar.


For the full story, see <http://api.openoffice.org/docs/DevelopersGuide/Components/Components.htm#1+5+8+2+Multiple+Implementations+per+Component+File>

Only the methods of the last interface appear in the insert function wizard of Calc...


Maybe you should submit a bug (that the system should throw an exception when it finds multiple RegistrationClass entries :-o )


Ciao, Joerg

--
Joerg Barfurth              Sun Microsystems - Desktop - Hamburg
>>>>>>>>>>>>>>>>>> using std::disclaimer <<<<<<<<<<<<<<<<<<<<<<<
Software Engineer                         [EMAIL PROTECTED]
OpenOffice.org Configuration          http://util.openoffice.org


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



Reply via email to