public interface IRemoteServiceDistributionProvider
Please NOTE: IRemoteServiceDistributionProviders should be registered (and therefore the bundles containing implementations started) before any remote services using these distribution providers are exported. In other words, if you create and register a IRemoteServiceDistributionProvider with name 'com.myproject.myprovider' the provider implementation bundle should be started and the IRemoteServiceDistributionProvider service must be registered prior to registering the service that is to be exported using that provider. For example
#Must first register the com.myproject.myprovider distribution provider, so it's available providerBuilder.setName('com.myproject.myprovider')... bundleContext.registerService(IRemoteServiceDistributionProvider.class,providerBuilder.build(),null); ... #Then may register a remote service that uses com.myproject.myprovider distribution provider props.put("service.exported.interfaces","*"); #This specifies that com.myproject.myprovider is to be used to export the service, but the above registration #must take place before MyService registration so it can be active for exporting this service props.put("service.exported.configs","com.myproject.myprovider"); #With usual topology manager the following will export MyService using com.myproject.myprovider #distribution provider bundleContext.registerService(MyService.class,new MyServiceImpl(),props);
Modifier and Type | Method and Description |
---|---|
AdapterConfig[] |
getAdapterConfigs()
Return any AdapterConfigs to register with the IAdapterManager
|
ContainerTypeDescription |
getContainerTypeDescription()
Return the ContainerTypeDescription to register for this distribution provider.
|
Dictionary<String,?> |
getContainerTypeDescriptionProperties()
Return any properties that are to be used when registering the ContainerTypeDescription
returned by above method.
|
Namespace |
getNamespace()
Return the Namespace (or subclass) to register for this distribution provider.
|
Dictionary<String,?> |
getNamespaceProperties()
Return any properties that are to be used when registering the Namespace
returned by above method.
|
ContainerTypeDescription getContainerTypeDescription()
null
and
should be unique identified via it's name (obtained via ContainerTypeDescription.getName()
.null
.Dictionary<String,?> getContainerTypeDescriptionProperties()
Null
may be returned.null
.Namespace getNamespace()
null
. In that case, no
new Namespace will be registered. If the returned Namespace is non-null,
It should be uniquely identified via it's name (obtained via Namespace.getName()
.null
.Dictionary<String,?> getNamespaceProperties()
Null
may be returned.null
.AdapterConfig[] getAdapterConfigs()
Copyright © 2017 Eclipse Foundation. All rights reserved.