Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2005-05-24 05:34:52 +0000
committerslewis2005-05-24 05:34:52 +0000
commitb767350fb026f5fbef65782aab7b51413c975372 (patch)
treef5fd1ab63e6e87cff02025837498a6f232a16ea2 /framework/bundles/org.eclipse.ecf.discovery/src
parent855ac674f390eb717689912567376a838b22e167 (diff)
downloadorg.eclipse.ecf-b767350fb026f5fbef65782aab7b51413c975372.tar.gz
org.eclipse.ecf-b767350fb026f5fbef65782aab7b51413c975372.tar.xz
org.eclipse.ecf-b767350fb026f5fbef65782aab7b51413c975372.zip
Added isResolved method to IServiceInfo interface and ServiceInfo implementation
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.discovery/src')
-rw-r--r--framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java7
-rw-r--r--framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java4
2 files changed, 10 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java
index 00940b782..a84fd6857 100644
--- a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java
+++ b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/IServiceInfo.java
@@ -58,4 +58,11 @@ public interface IServiceInfo {
* @return Map the properties associated with this service
*/
public Map getProperties();
+ /**
+ * Returns true if this service info has been resolved by the service
+ * publisher, false if not.
+ *
+ * @return true if this instance has been resolved, false if not
+ */
+ public boolean isResolved();
}
diff --git a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java
index 79bee2470..9a910203c 100644
--- a/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java
+++ b/framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java
@@ -62,7 +62,9 @@ public class ServiceInfo implements IServiceInfo, Serializable {
public Map getProperties() {
return properties;
}
-
+ public boolean isResolved() {
+ return (addr == null);
+ }
public String toString() {
StringBuffer buf = new StringBuffer("ServiceInfo[");
buf.append("addr=").append(addr).append(";id=").append(serviceID).append(

Back to the top