org.ws4d.java.service.reference
Interface ServiceListener

All Known Implementing Classes:
DefaultClient

public interface ServiceListener

Callback interface for listeners interested in state changes of services. Global service listening is initiated by registration via ServiceReferenceEventRegistry.registerServiceListening(ServiceListener) , the method ServiceReferenceEventRegistry.unregisterServiceListening(ServiceListener) removes service listening.


Method Summary
 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 of.
 

Method Detail

serviceChanged

void serviceChanged(ServiceReference serviceRef,
                    Service service)
Callback method, if service within the ServiceReference has been changed.

Parameters:
serviceRef - a reference to the service that caused the notification
the - service that has just been created

serviceCreated

void serviceCreated(ServiceReference serviceRef,
                    Service service)
Callback method, if the service within the ServiceReference was created.

Parameters:
serviceRef - a reference to the service that caused the notification qpram service the service that just have changed

serviceDisposed

void serviceDisposed(ServiceReference serviceRef)
Callback method, if the service within the ServiceReference was disposed of.

Parameters:
serviceRef - a reference to the service that caused the notification