connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/interfaces/IConnectedServiceFactory.java
author Ed Swartz <ed.swartz@nokia.com>
Wed, 08 Sep 2010 17:12:10 -0500
changeset 1965 0dd7f79ee65d
parent 0 fb279309251b
permissions -rw-r--r--
Support testing package XML locally

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


package com.nokia.carbide.remoteconnections.interfaces;

import java.util.Collection;

/**
 * The interface for creating connected services
 */
public interface IConnectedServiceFactory {

	/**
	 * Create an instance of a connected service from a connection and a service
	 * @param connection IConnection
	 * @return IConnectedService
	 */
	IConnectedService createConnectedService(IService service, IConnection connection);
	
	/**
	 * Return a collection of ids for connection types compatible with service
	 * @param service IService
	 * @return Collection
	 */
	Collection<String> getCompatibleConnectionTypeIds(IService service);
	
}