diff options
author | slewis | 2016-03-02 20:33:36 +0000 |
---|---|---|
committer | slewis | 2016-03-02 20:33:36 +0000 |
commit | dfedae68ad08e94aec861ce9017621585befae86 (patch) | |
tree | 9a76ba24b9d6457123884de33385aea5c091f0ce | |
parent | 8d62469b67dfd29915ca73c19fd8f48dec83fd35 (diff) | |
download | org.eclipse.ecf-dfedae68ad08e94aec861ce9017621585befae86.tar.gz org.eclipse.ecf-dfedae68ad08e94aec861ce9017621585befae86.tar.xz org.eclipse.ecf-dfedae68ad08e94aec861ce9017621585befae86.zip |
Added RemoteServiceContainerInstantiator protected constructor to make
it easier to create client-server remote service containers
Change-Id: I50932d85e3ebe4bb152c4017858f3299f96e1ba2
-rw-r--r-- | framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/provider/RemoteServiceContainerInstantiator.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/provider/RemoteServiceContainerInstantiator.java b/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/provider/RemoteServiceContainerInstantiator.java index 7262b4237..d9de7a42a 100644 --- a/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/provider/RemoteServiceContainerInstantiator.java +++ b/framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/provider/RemoteServiceContainerInstantiator.java @@ -31,6 +31,14 @@ public abstract class RemoteServiceContainerInstantiator extends BaseContainerIn protected List<String> exporterConfigs; protected Map<String, List<String>> exporterConfigToImporterConfigs; + /** + * @since 8.9 + */ + protected RemoteServiceContainerInstantiator(String serverProvider, String clientProvider) { + this.exporterConfigs.add(serverProvider); + this.exporterConfigToImporterConfigs.put(serverProvider, Arrays.asList(new String[] {clientProvider})); + } + protected RemoteServiceContainerInstantiator(List<String> exporterConfigs, Map<String, List<String>> exporterConfigToImporterConfig) { this.exporterConfigs = (exporterConfigs == null) ? new ArrayList<String>() : exporterConfigs; this.exporterConfigToImporterConfigs = (exporterConfigToImporterConfig == null) ? new HashMap<String, List<String>>() : exporterConfigToImporterConfig; |