diff options
| author | slewis | 2005-06-11 06:41:43 +0000 |
|---|---|---|
| committer | slewis | 2005-06-11 06:41:43 +0000 |
| commit | d088a557096f1cf6a3cb15bf192f947ecc8f2a6d (patch) | |
| tree | 6412d0b8415dad9879dc745058735f4618cbc2c8 | |
| parent | f13d57615b5aa728dbde318122c60452a4589829 (diff) | |
| download | org.eclipse.ecf-d088a557096f1cf6a3cb15bf192f947ecc8f2a6d.tar.gz org.eclipse.ecf-d088a557096f1cf6a3cb15bf192f947ecc8f2a6d.tar.xz org.eclipse.ecf-d088a557096f1cf6a3cb15bf192f947ecc8f2a6d.zip | |
Added constructor for ServiceInfo class
| -rw-r--r-- | framework/bundles/org.eclipse.ecf.discovery/src/org/eclipse/ecf/discovery/ServiceInfo.java | 7 |
1 files changed, 7 insertions, 0 deletions
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 9a910203c..59cdb0aef 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 @@ -25,6 +25,13 @@ public class ServiceInfo implements IServiceInfo, Serializable { int weight; Map properties; + public ServiceInfo(InetAddress address, String type, int port, int priority, int weight, Map props) { + this.addr = address; + this.serviceID = new ServiceID(type,null); + this.port = port; + this.weight = weight; + this.properties = props; + } public ServiceInfo(InetAddress address, ServiceID id, int port, int priority, int weight, Map props) { this.addr = address; |
