org.apache.felix.upnp.basedriver.export
Class RootDeviceListener

java.lang.Object
  extended by org.apache.felix.upnp.basedriver.export.RootDeviceListener
All Implemented Interfaces:
EventListener, ServiceListener

public class RootDeviceListener
extends Object
implements ServiceListener


Constructor Summary
RootDeviceListener(RootDeviceExportingQueue queue)
           
 
Method Summary
 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
 void addDevice(ServiceReference sr)
           
 void deactive()
           
 void removeDevice(ServiceReference sr)
           
 void serviceChanged(ServiceEvent e)
          Receives notification that a service has had a lifecycle change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootDeviceListener

public RootDeviceListener(RootDeviceExportingQueue queue)
Method Detail

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 © 2011 Apache Software Foundation. All Rights Reserved.