Hi Karl, Didier, all,
I'm back...well I have general (maybe trivial) questions about the
objectives pursued by the R4 designers. The specification doesn't tell
explicitly that the Base Driver has to act as bridge towards the Event
Admin, but it simply states that UPnP events has to delivered to the EA
service. Besides the Base Driver doesn't come in help of developing of
exported UPnPDevice, in fact developers have to manage the delivery of
UPnP Events alone . So developers could try to send their events to the
EA service too, contributing in a duplication of messages.
Another question is about the the consumers of the UPnP Events, from the
point of view of OSGi-UPnP developers the writing of
UPnPEventListeners or EventHandler is equivalent, it doesn't
simplify the coding, but the EA service is not always available ( not
being in the core specification) So I suspect that the mechanism based
on the service interface will be preferred to the second one. The
introduction of the Event Admin spec begins telling "So far, the
preferred mechanism to disperse those events have been the service
interface mechanism". That means that in the future we will change the
communication mechanism? I have noticed that also the framework topics
have been defined ...
Regarding the use of a separate bundle registering a generic
UPnPEventListener, I would be attempt to use this solution, putting all
in the Extra bundle, but it results in extra messages exchanged, while
doing that in the Base Driver we should only to modify the code to add
the posting of the messages....
regards
francesco
Karl Pauls wrote:
I have done this event publisher long time ago (especially for
Francesco)
http://www-adele.imag.fr/~donsez/dev/osgi/upnpeventpublisher/
I think the issue here is that its the responsibility of the UPnP
implementation to provide the bridge. How I understand the spec it
isn't necessary to wrap this in a separate bundle.
But I could be wrong.
I can donate it to Felix
As far as I can see, this is doing the same as the code I attached to
the JIRA and we are talking about a 40 lines of code here... but
still, why don't you attache it to the JIRA too?
Didier
Additionally, I'd like to discuss whether it is a good idea to create
a package dependency on the org.osgi.service.event package (only in
case it is included into the UPnP implementation) .... The code I
provided should work with a DynamicPackage-Import as well (whether or
not this is a good thing is debatable :-)
regards,
Karl
--
Karl Pauls
[EMAIL PROTECTED]