/*******************************************************************************
 * Copyright (c) 2010 Tasktop Technologies 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.mylyn.builds.core.spi;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.eclipse.mylyn.builds.core.IBuildPlan;
import org.eclipse.mylyn.builds.core.IBuildServerConfiguration;

/**
 * @author Steffen Pingel
 * @noextend This class is not intended to be subclassed by clients.
 */
public class BuildServerConfiguration implements IBuildServerConfiguration {

	private final List<IBuildPlan> plans;

	public BuildServerConfiguration(List<IBuildPlan> plans) {
		this.plans = Collections.unmodifiableList(new ArrayList<IBuildPlan>(plans));
	}

	public List<IBuildPlan> getPlans() {
		return plans;
	}

}
