public interface ServiceListener
| Modifier and Type | Method and Description |
|---|---|
void |
serviceAdded(ServiceDirectory directory,
ServiceRef serviceRef)
This method is called when a new service has been added.
|
void |
serviceRemoved(ServiceDirectory directory,
java.lang.String type,
java.lang.String name)
This method is called when a service has been removed.
|
void serviceAdded(ServiceDirectory directory, ServiceRef serviceRef)
directory - identifies the directory sending this notificationserviceRef - The service reference of service provided.void serviceRemoved(ServiceDirectory directory, java.lang.String type, java.lang.String name)
directory - identifies the directory sending this notificationtype - The type of the removed service.name - The name of the removed service.