org.apache.felix.upnp.basedriver.export
Class RootDeviceListener
java.lang.Object
org.apache.felix.upnp.basedriver.export.RootDeviceListener
- All Implemented Interfaces:
- EventListener, ServiceListener
public class RootDeviceListener
- extends Object
- implements ServiceListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RootDeviceListener
public RootDeviceListener(RootDeviceExportingQueue queue)
addDevice
public void addDevice(ServiceReference sr)
serviceChanged
public void serviceChanged(ServiceEvent e)
- Description copied from interface:
ServiceListener
- Receives notification that a service has had a lifecycle change.
- Specified by:
serviceChanged
in interface ServiceListener
- Parameters:
e
- The ServiceEvent
object.- See Also:
ServiceListener.serviceChanged(org.osgi.framework.ServiceEvent)
removeDevice
public void removeDevice(ServiceReference sr)
- Parameters:
serviceReference
-
activate
public void activate()
- Register this object to listen to all "well registered" UPnPDevice
that should be Exported
And look for all the already registered UPnPDevice to be exported
deactive
public void deactive()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.