org.apache.felix.upnp.tester.discovery
Class RootDeviceListener
java.lang.Object
org.apache.felix.upnp.tester.discovery.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()
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 © 2013 The Apache Software Foundation. All Rights Reserved.