public interface IDiscoveryAdvertiser
extends org.eclipse.core.runtime.IAdaptable
This interface can be used by container provider implementations as an adapter so that calls to IContainer.getAdapter(IDiscoveryAdvertiser.class) will return a non-null instance of a class that implements this interface. Clients can then proceed to use this interface to interact with the given discovery implementation.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTAINER_NAME
The name of the discovery container under which it is registered with the
OSGi runtime as a service property
|
Modifier and Type | Method and Description |
---|---|
Namespace |
getServicesNamespace()
Get a Namespace for services associated with this discovery container
adapter.
|
void |
registerService(IServiceInfo serviceInfo)
Register the given service.
|
void |
unregisterAllServices()
Unregister all previously registered service.
|
void |
unregisterService(IServiceInfo serviceInfo)
Unregister a previously registered service defined by serviceInfo.
|
static final java.lang.String CONTAINER_NAME
void registerService(IServiceInfo serviceInfo)
serviceInfo
- IServiceInfo of the service to be published. Must not be
null
.void unregisterService(IServiceInfo serviceInfo)
serviceInfo
- IServiceInfo defining the service to unregister. Must not be
null
.void unregisterAllServices()
Namespace getServicesNamespace()
IServiceID serviceID = ServiceIDFactory.getDefault().createServiceID( container.getServicesNamespace(), serviceType, serviceName);
null
.