Class RemoteServiceDistributionProvider
- java.lang.Object
- 
- org.eclipse.ecf.remoteservice.provider.RemoteServiceDistributionProvider
 
- 
- All Implemented Interfaces:
- IRemoteServiceDistributionProvider
 
 public class RemoteServiceDistributionProvider extends Object implements IRemoteServiceDistributionProvider Basic implementation of IRemoteServiceDistributionProvider. Intended to be subclassed by distribution provider implementations and or use Builder static inner class to create/build instances.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);- Since:
- 8.7
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRemoteServiceDistributionProvider.BuilderBuilder for RemoteServiceDistributionProvider instances
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedRemoteServiceDistributionProvider()protectedRemoteServiceDistributionProvider(String name)protectedRemoteServiceDistributionProvider(String name, IContainerInstantiator instantiator)protectedRemoteServiceDistributionProvider(String name, IContainerInstantiator instantiator, String description)protectedRemoteServiceDistributionProvider(String name, IContainerInstantiator instantiator, String description, boolean server)
 - 
Method Summary
 
- 
- 
- 
Constructor Detail- 
RemoteServiceDistributionProviderprotected RemoteServiceDistributionProvider() 
 - 
RemoteServiceDistributionProviderprotected RemoteServiceDistributionProvider(String name) 
 - 
RemoteServiceDistributionProviderprotected RemoteServiceDistributionProvider(String name, IContainerInstantiator instantiator) 
 - 
RemoteServiceDistributionProviderprotected RemoteServiceDistributionProvider(String name, IContainerInstantiator instantiator, String description) 
 - 
RemoteServiceDistributionProviderprotected RemoteServiceDistributionProvider(String name, IContainerInstantiator instantiator, String description, boolean server) 
 
- 
 - 
Method Detail- 
getNameprotected String getName() 
 - 
setNameprotected RemoteServiceDistributionProvider setName(String name) 
 - 
getInstantiatorprotected IContainerInstantiator getInstantiator() 
 - 
setInstantiatorprotected RemoteServiceDistributionProvider setInstantiator(IContainerInstantiator instantiator) 
 - 
getDescriptionprotected String getDescription() 
 - 
setDescriptionprotected RemoteServiceDistributionProvider setDescription(String desc) 
 - 
isServerprotected boolean isServer() 
 - 
setServerprotected RemoteServiceDistributionProvider setServer(boolean server) 
 - 
isHiddenprotected boolean isHidden() 
 - 
setHiddenprotected RemoteServiceDistributionProvider setHidden(boolean hidden) 
 - 
setNamespaceprotected RemoteServiceDistributionProvider setNamespace(Namespace ns) 
 - 
setContainerTypeDescriptionPropertiesprotected RemoteServiceDistributionProvider setContainerTypeDescriptionProperties(Dictionary<String,?> props) 
 - 
setNamespacePropertiesprotected RemoteServiceDistributionProvider setNamespaceProperties(Dictionary<String,?> props) 
 - 
addAdapterConfigprotected RemoteServiceDistributionProvider addAdapterConfig(AdapterConfig adapterConfig) 
 - 
setAdapterConfigprotected RemoteServiceDistributionProvider setAdapterConfig(AdapterConfig adapterConfig) 
 - 
validateCompleteprotected void validateComplete() throws NullPointerException- Throws:
- NullPointerException
 
 - 
getContainerTypeDescriptionpublic ContainerTypeDescription getContainerTypeDescription() Description copied from interface:IRemoteServiceDistributionProviderReturn the ContainerTypeDescription to register for this distribution provider. The returned ContainerTypeDescription must not benulland should be unique identified via it's name (obtained viaContainerTypeDescription.getName().- Specified by:
- getContainerTypeDescriptionin interface- IRemoteServiceDistributionProvider
- Returns:
- ContainerTypeDescription.  Must not be null.
 
 - 
getContainerTypeDescriptionPropertiespublic Dictionary<String,?> getContainerTypeDescriptionProperties() Description copied from interface:IRemoteServiceDistributionProviderReturn any properties that are to be used when registering the ContainerTypeDescription returned by above method.Nullmay be returned.- Specified by:
- getContainerTypeDescriptionPropertiesin interface- IRemoteServiceDistributionProvider
- Returns:
- Dictionary to use when registering the ContainerTypeDescription  
 May be null.
 
 - 
getNamespacepublic Namespace getNamespace() Description copied from interface:IRemoteServiceDistributionProviderReturn the Namespace (or subclass) to register for this distribution provider. The returned Namespace may benull. 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 viaNamespace.getName().- Specified by:
- getNamespacein interface- IRemoteServiceDistributionProvider
- Returns:
- ContainerTypeDescription.  May be null.
 
 - 
getNamespacePropertiespublic Dictionary<String,?> getNamespaceProperties() Description copied from interface:IRemoteServiceDistributionProviderReturn any properties that are to be used when registering the Namespace returned by above method.Nullmay be returned.- Specified by:
- getNamespacePropertiesin interface- IRemoteServiceDistributionProvider
- Returns:
- Dictionary to use when registering this provider's Namespace.  
 May be null.
 
 - 
getAdapterConfigspublic AdapterConfig[] getAdapterConfigs() Description copied from interface:IRemoteServiceDistributionProviderReturn any AdapterConfigs to register with the IAdapterManager- Specified by:
- getAdapterConfigsin interface- IRemoteServiceDistributionProvider
- Returns:
- AdapterConfig[] holding any AdapterConfigs to be registered with the system-wide adaptermanager.
 
 
- 
 
-