blob: 310b8da6125d99d0b039ca53ff0bd34896cc77ff [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.connection.service;
import java.util.Collection;
/**
* @author Ken J. Aguilar
*/
public interface IConnectionService {
/**
* finds all currently existing connectors
*/
Collection<IServiceConnector> getAllConnectors();
/**
* finds all available connectors that are accepted by all filters in the filter chain
*/
Collection<IServiceConnector> findConnectors(IConnectorFilter[] filterChain);
/**
* registers an listener object for notification of connector events. Note that the listener object's
* {@link IConnectorListener#onConnectorsAdded(Collection)} will be called immediately for each active connector.
*/
void addListener(IConnectorListener listener);
void removeListener(IConnectorListener listener);
void addConnector(IServiceConnector connector);
void addConnectors(Collection<IServiceConnector> connectors);
void removeConnector(IServiceConnector connector) throws Exception;
boolean isStopped();
}