Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2016-03-02 20:33:36 +0000
committerslewis2016-03-02 20:33:36 +0000
commitdfedae68ad08e94aec861ce9017621585befae86 (patch)
tree9a76ba24b9d6457123884de33385aea5c091f0ce /framework/bundles
parent8d62469b67dfd29915ca73c19fd8f48dec83fd35 (diff)
downloadorg.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
Diffstat (limited to 'framework/bundles')
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice/src/org/eclipse/ecf/remoteservice/provider/RemoteServiceContainerInstantiator.java8
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;

Back to the top