org.apache.felix.upnp.tester.discovery
Class RootDeviceListener

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

public class RootDeviceListener
extends Object
implements ServiceListener


Constructor Summary
RootDeviceListener()
           
 
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 addNewDevice(ServiceReference sr)
           
static void checkErrataDevice()
           
 void checkIncompleteDevice()
           
 void deactive()
           
static boolean isPresent(ServiceReference sr, ServiceReference[] list)
           
static void printErrataDevice(ServiceReference[] allUPnPDevice, ServiceReference[] UPnPbaseDriverDevice)
           
static void printProperties(ServiceReference service)
           
 void removeDevice(ServiceReference sr)
           
 void serviceChanged(ServiceEvent e)
          Receives notification that a service has had a lifecycle change.
 void setDeviceNodeListener(DeviceNodeListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootDeviceListener

public RootDeviceListener()
Method Detail

setDeviceNodeListener

public void setDeviceNodeListener(DeviceNodeListener listener)

addNewDevice

public void addNewDevice(ServiceReference sr)

removeDevice

public void removeDevice(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)

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()

checkIncompleteDevice

public void checkIncompleteDevice()

checkErrataDevice

public static void checkErrataDevice()

printErrataDevice

public static void printErrataDevice(ServiceReference[] allUPnPDevice,
                                     ServiceReference[] UPnPbaseDriverDevice)

isPresent

public static boolean isPresent(ServiceReference sr,
                                ServiceReference[] list)

printProperties

public static void printProperties(ServiceReference service)


Copyright © 2011 Apache Software Foundation. All Rights Reserved.