org.apache.felix.upnp.tester.discovery
Class RootDeviceListener
java.lang.Object
org.apache.felix.upnp.tester.discovery.RootDeviceListener
- All Implemented Interfaces:
- java.util.EventListener, org.osgi.framework.ServiceListener
public class RootDeviceListener
- extends java.lang.Object
- implements org.osgi.framework.ServiceListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RootDeviceListener
public RootDeviceListener()
setDeviceNodeListener
public void setDeviceNodeListener(DeviceNodeListener listener)
addNewDevice
public void addNewDevice(org.osgi.framework.ServiceReference sr)
removeDevice
public void removeDevice(org.osgi.framework.ServiceReference sr)
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent e)
- Specified by:
serviceChanged
in interface org.osgi.framework.ServiceListener
- 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(org.osgi.framework.ServiceReference[] allUPnPDevice,
org.osgi.framework.ServiceReference[] UPnPbaseDriverDevice)
isPresent
public static boolean isPresent(org.osgi.framework.ServiceReference sr,
org.osgi.framework.ServiceReference[] list)
printProperties
public static void printProperties(org.osgi.framework.ServiceReference service)