org.eclipse.ecf.osgi.services.discovery.local
Class DiscoveredServiceNotificationImpl

java.lang.Object
  extended by org.eclipse.ecf.osgi.services.discovery.local.DiscoveredServiceNotificationImpl
All Implemented Interfaces:
DiscoveredServiceNotification

public class DiscoveredServiceNotificationImpl
extends java.lang.Object
implements DiscoveredServiceNotification


Field Summary
 
Fields inherited from interface org.eclipse.ecf.osgi.services.discovery.DiscoveredServiceNotification
AVAILABLE, MODIFIED, MODIFIED_ENDMATCH, UNAVAILABLE
 
Constructor Summary
DiscoveredServiceNotificationImpl(ServiceEndpointDescription sed, int notificationType, java.util.Collection matchingFilters, java.util.Collection matchingInterfaces)
           
 
Method Summary
 java.util.Collection getFilters()
          Returns filters of the DiscoveredServiceTracker object matching with the properties of the ServiceEndpointDescription and thus caused the notification.
 java.util.Collection getInterfaces()
          Returns interface name criteria of the DiscoveredServiceTracker object matching with the interfaces of the ServiceEndpointDescription and thus caused the notification.
 ServiceEndpointDescription getServiceEndpointDescription()
          Returns information currently known to Discovery regarding the service endpoint.
 int getType()
          Returns the type of notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveredServiceNotificationImpl

public DiscoveredServiceNotificationImpl(ServiceEndpointDescription sed,
                                         int notificationType,
                                         java.util.Collection matchingFilters,
                                         java.util.Collection matchingInterfaces)
Method Detail

getServiceEndpointDescription

public ServiceEndpointDescription getServiceEndpointDescription()
Description copied from interface: DiscoveredServiceNotification
Returns information currently known to Discovery regarding the service endpoint.

Specified by:
getServiceEndpointDescription in interface DiscoveredServiceNotification
Returns:
metadata of the service Discovery notifies about. Is never null.
See Also:
DiscoveredServiceNotification.getServiceEndpointDescription()

getType

public int getType()
Description copied from interface: DiscoveredServiceNotification
Returns the type of notification. The type values are:

Specified by:
getType in interface DiscoveredServiceNotification
Returns:
Type of notification regarding known service metadata.
See Also:
DiscoveredServiceNotification.getType()

getFilters

public java.util.Collection getFilters()
Description copied from interface: DiscoveredServiceNotification
Returns filters of the DiscoveredServiceTracker object matching with the properties of the ServiceEndpointDescription and thus caused the notification.

Specified by:
getFilters in interface DiscoveredServiceNotification
Returns:
Collection (<String>) of matching filters of the DiscoveredServiceTracker object being notified, or an empty collection if notification hasn't been caused by a matching filter criteria.
See Also:
DiscoveredServiceNotification.getFilters()

getInterfaces

public java.util.Collection getInterfaces()
Description copied from interface: DiscoveredServiceNotification
Returns interface name criteria of the DiscoveredServiceTracker object matching with the interfaces of the ServiceEndpointDescription and thus caused the notification.

Specified by:
getInterfaces in interface DiscoveredServiceNotification
Returns:
Collection (<String>) of matching interface name criteria of the DiscoveredServiceTracker object being notified, or an empty collection if notification hasn't been caused by a matching interface name criteria.
See Also:
DiscoveredServiceNotification.getInterfaces()