public interface ServiceListener
ServiceReferenceEventRegistry.registerServiceListening(ServiceListener) , the method ServiceReferenceEventRegistry.unregisterServiceListening(ServiceListener) removes service
listening.| Modifier and Type | Method and Description |
|---|---|
void |
serviceChanged(ServiceReference serviceRef,
Service service)
Callback method, if service within the
ServiceReference has been changed. |
void |
serviceCreated(ServiceReference serviceRef,
Service service)
Callback method, if the service within the
ServiceReference was created. |
void |
serviceDisposed(ServiceReference serviceRef)
Callback method, if the service within the
ServiceReference was disposed for one of the
following reasons: |
void serviceChanged(ServiceReference serviceRef, Service service)
ServiceReference has been changed.serviceRef - a reference to the service that caused the notificationservice - the service that has just been createdvoid serviceCreated(ServiceReference serviceRef, Service service)
ServiceReference was created.serviceRef - a reference to the service that caused the notification qpram service the service that just have changedvoid serviceDisposed(ServiceReference serviceRef)
ServiceReference was disposed for one of the
following reasons:
ServiceReference was removed or replaced by
a new service
Important: A device shutdown does not generally imply that all services of the device are also shutdown. Therefore a bye received by from a device does not trigger this method.
serviceRef - a reference to the service that caused the notification