OSGi - How can a UPnPStateVariable generate an event? [message #45914] |
Thu, 04 November 2004 19:32 |
Eclipse User |
|
|
|
Originally posted by: JohannesWechsler.gmx.de
Hi,
I export an OSGi service as a UPnP device. Therefore I implement the
interfaces of the package org.osgi.service.upnp and register my OSGi bundle
so that it can be used as a UPnP device in the network. All this works fine.
On page 526 the OSGi Spec 3.0 says that a
"[org.osgi.service.upnp.UPnP]StateVariable can be used as an event source.
If the StateVariable is eventable, an event listener service can be
registered to be notified when changes to the variable appear."
My questions:
(1) How can I change the value of a UPnPStateVariable since there is no
attribute "value" or something like that?
(2) How can a UPnPStateVariable (automatically) generate an event?
I would appreciate if someone could give me further explanations how to
implement a UPnPStateVariable that automatically generates events each time
its value changes which can be received by any listening UPnP Control Point.
Regards,
Johannes
|
|
|
Powered by
FUDForum. Page generated in 0.03865 seconds