Karl Pauls a écrit :

Indeed the event dispatching is distributed.


o.k., I see.

That is because I said that the specification  seems to me a bit elusive
referring to UPnP Events ...
Moreover this could be a valid reason to adopt an external bundle that
bridge all the UPnP Events to the EA service ... it works also without
the base driver ....


Hm, the problem I see with this is how do you know that a device that
reads the spec differently doesn't send its events to the event admin
too? Then we end-up with a situation where we have duplicated events.

Sure, but this is legacy since the org.osgi.service.upnp.UPnPEventListener exists before R4 and EventAdmin.

One more thing : an argument to add the UPnP to EA bridge inside the EA implementation may be an optimization in which the bridge is deactived when non EventHandler with (event.topics=org/osgi/service/upnp/UPnPEvent) is registered ! A general-purpose dependency manager could be useful in this context ! Isn't it Rick ;-)

More over, there is the same optimization for Framework-, Bundle-,Service-, and Log-Events
Karl, how do you tacckle that in your EA implementation ?

Didier

This sounds like a tough problem. If we provide an external bridge
then we could create duplicated events - If we don't then for some
events no bridging is taking place ... either way we lose :-(

Maybe we should raise this issue on the osgi-dev list and request some
clarifications on who is supposed to do what exactly?!

Additionally, rather then creating a separate bundle, I'd propose to
include the bridge in the EventAdmin instead. It already does some
other bridging anyways (i.e., Framework-, Bundle-,Service-, and
Log-Events). Does this sound like a good idea?

regards,

Karl

--
Karl Pauls
[EMAIL PROTECTED]



--
---------------------------------------------------------
Didier DONSEZ
Laboratoire LSR, Institut Imag, Universite Joseph Fourier
Bat. C, 220 rue de la Chimie, Domaine Universitaire
BP 53, 38041 Grenoble Cedex 9, France
GPS : lat 45°11'38.3"N, lon 05°46'14.7"E, alt 223m
Tel : +33 4 76 63 55 49           Fax : +33 4 76 63 55 50
mailto:[EMAIL PROTECTED]
URL: http://www-adele.imag.fr/~donsez
---------------------------------------------------------



Reply via email to