Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b601caa730c11a30fb5028a13c380790a363e692 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/****************************************************************************
 * Copyright (c) 2016 Composent, Inc. and others.
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * Contributors: Composent, Inc. - initial API and implementation
 *
 * SPDX-License-Identifier: EPL-2.0
 *****************************************************************************/
package org.eclipse.ecf.remoteservice.provider;

import java.util.*;

/**
 * @since 8.7
 */
public abstract class PeerRemoteServiceContainerInstantiator extends RemoteServiceContainerInstantiator {

	public PeerRemoteServiceContainerInstantiator(String peerA, String peerB) {
		this.exporterConfigs = new ArrayList<String>();
		this.exporterConfigs.add(peerA);
		this.exporterConfigs.add(peerB);
		this.exporterConfigToImporterConfigs = new HashMap<String, List<String>>();
		this.exporterConfigToImporterConfigs.put(peerA, Arrays.asList(new String[] {peerA, peerB}));
		this.exporterConfigToImporterConfigs.put(peerB, Arrays.asList(new String[] {peerA, peerB}));
	}

}

Back to the top