Christoph Lutz wrote: > We are now searching for a mechanism to broadcast a kind of > synchronization-event. This mechanism should of course be as most > independent of our custom component and as most integrable into the > generic OOo-Mechanisms. Using the globalEventBroadcaster is one > approach we have in mind, but there might still be other other ways. > We also considered implementing one of the XComponent- or > XEventBroadcaster-Interfaces but this seems to be a very > component-specific thing as the corresponding listener has to be > registered on exactly one specific object (our component A). > > Broadcasting an event via GlobalEventBroadcaster seems to be a more > generic way as there is one central point for registering the > listener. To avoid the need of a complex naming-scheme for the > event-names, I would prefer a generic event like > "OnCustomProcessingFinished" (with an event-object containing > information about the custom component and the processed document).
Did you consider to create your own "broadcasting service"? You are not restricted to the services provided by OOo, create your own ones! If your service provided the same API as the GlobalEventBroadcaster your listener just would hvave to register at two services instead of one but nothing else needed to be changed. Thus you won't get name clashes. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
