|
Lines 12-20
Link Here
|
| 12 |
import org.eclipse.core.runtime.IAdaptable; |
12 |
import org.eclipse.core.runtime.IAdaptable; |
| 13 |
import org.eclipse.ecf.core.identity.Namespace; |
13 |
import org.eclipse.ecf.core.identity.Namespace; |
| 14 |
import org.eclipse.ecf.core.util.ECFException; |
14 |
import org.eclipse.ecf.core.util.ECFException; |
| 15 |
import org.eclipse.ecf.discovery.identity.IServiceID; |
15 |
import org.eclipse.ecf.discovery.identity.*; |
| 16 |
import org.eclipse.ecf.discovery.identity.IServiceTypeID; |
|
|
| 17 |
import org.eclipse.ecf.discovery.identity.ServiceIDFactory; |
| 18 |
|
16 |
|
| 19 |
/** |
17 |
/** |
| 20 |
* Entry point discovery container adapter. This interface exposes the ability |
18 |
* Entry point discovery container adapter. This interface exposes the ability |
|
Lines 159-167
Link Here
|
| 159 |
*/ |
157 |
*/ |
| 160 |
public IServiceInfo[] getServices(String type); |
158 |
public IServiceInfo[] getServices(String type); |
| 161 |
|
159 |
|
|
|
160 |
/** |
| 161 |
* Get service info about all known services of given service type |
| 162 |
* |
| 163 |
* @param type |
| 164 |
* IServiceTypeID defining the type of service we are interested in |
| 165 |
* getting service info about. Must not be <code>null</code> |
| 166 |
* @return IServiceInfo[] the resulting array of service info instances. |
| 167 |
* Will not be <code>null</code>. May be of length 0. |
| 168 |
*/ |
| 162 |
public IServiceInfo[] getServices(IServiceTypeID type); |
169 |
public IServiceInfo[] getServices(IServiceTypeID type); |
| 163 |
|
170 |
|
| 164 |
/** |
171 |
/** |
|
|
172 |
* Get service info about all known services |
| 173 |
* |
| 174 |
* @return IServiceInfo[] the resulting array of service info instances. |
| 175 |
* Will not be <code>null</code>. May be of length 0. |
| 176 |
*/ |
| 177 |
public IServiceInfo[] getServices(); |
| 178 |
|
| 179 |
public IServiceTypeID[] getServiceTypes(); |
| 180 |
|
| 181 |
/** |
| 165 |
* Get a namespace for services associated with this discovery container adapter. The given namespace |
182 |
* Get a namespace for services associated with this discovery container adapter. The given namespace |
| 166 |
* may be used via {@link ServiceIDFactory} to create IServiceIDs rather than simple IDs. For example: |
183 |
* may be used via {@link ServiceIDFactory} to create IServiceIDs rather than simple IDs. For example: |
| 167 |
* <pre> |
184 |
* <pre> |