|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDiscoveryAdvertiser
Entry point discovery advertiser. This interface exposes the ability to register and unregister locally provided services.
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.
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
static final java.lang.String CONTAINER_NAME
Method Detail |
---|
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |