|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SelectionProviderContext
Platform implementations that wish to receive notifications from a
SelectionProvider
register an instance that implements
this interface with the SelectionProvider
.
Method Summary | |
---|---|
void |
serviceDescriptionAvailable(ServiceReference[] serviceReferences)
Called by a source when service description information is available to offer that information to the platform implementation. |
void |
serviceListChanged(ServiceReference[] serviceReferences)
Called by a source when the list of services changes. |
void |
updateService(ServiceReference service)
Called by a source to update the details of a service it supports. |
Method Detail |
---|
void serviceListChanged(ServiceReference[] serviceReferences)
The services passed into this method shall be compared with the service list returned from the call to getServiceList when this provider was first registered. Where services are added, these shall be merged into the platform service list as defined in the description of the getServiceList method. Where services are removed, if the transport independent service is left with no transport dependent services then it shall be removed from the platform service list. In all cases where the platform service list changes, SIChangeEvents shall be generated to appropriate listeners.
serviceReferences
- The ServiceReference instances
for the available services. This array
must not change after this method is invoked.void serviceDescriptionAvailable(ServiceReference[] serviceReferences)
serviceReferences
- The ServiceReference instances
for which descriptions are available. This array
must not change after this method is invoked.void updateService(ServiceReference service)
service
- the new service reference
java.lang.IllegalArgumentException
- if a service with the
same service identifier and transport independent locator
has not been previously returned by this source to the
implementation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |