/******************************************************************************* * Copyright (c) 2009 Tasktop Technologies, Polarion Software and others. * 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: * Tasktop Technologies - initial API and implementation *******************************************************************************/ package org.eclipse.team.svn.core.discovery.model; import java.util.List; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; /** * An abstraction of a strategy for discovering connectors and categories. Strategy design pattern. Note that strategies * are not reusable and must be disposed. * * @author David Green * @author Igor Burilo */ public abstract class AbstractDiscoveryStrategy { protected List categories; protected List connectors; /** * Perform discovery and add discovered items to {@link #getCategories() categories} and {@link #getConnectors()}. * * @param monitor * the monitor */ public abstract void performDiscovery(IProgressMonitor monitor) throws CoreException; public List getCategories() { return categories; } public void setCategories(List categories) { this.categories = categories; } public List getConnectors() { return connectors; } public void setConnectors(List connectors) { this.connectors = connectors; } public void dispose() { } }