blob: 38527363eb9adf8936a8f1363919ad7fa57f302f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2005 IBM Corporation 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:
* IBM Corporation - Initial API and implementation
*******************************************************************************/
package org.eclipse.wst.server.core.model;
import java.util.List;
import org.eclipse.wst.server.core.IServer;
/**
* A publish task delegate.
*
* <p>This is the implementation of a publishTask extension point.</p>
* <p>
* This abstract class is intended to be extended only by clients
* to extend the <code>publishTask</code> extension point.
* </p>
*
* @since 1.0
*/
public abstract class PublishTaskDelegate {
/**
* Returns the tasks that should be performed during publishing.
*
* @param server the server
* @param modules a list containing IModule arrays
* @return the tasks that should be performed on the server.
*/
public PublishOperation[] getTasks(IServer server, List modules) {
return null;
}
/**
* Returns the tasks that should be performed during publishing.
*
* @param server the server
* @param modules a list containing IModule arrays
* @param kind one of the IServer.PUBLISH_XX constants.
* @param kindList one of the IServer publish change constants.
* @return the tasks that should be performed on the server.
*/
public PublishOperation[] getTasks(IServer server, int kind, List modules, List kindList) {
return getTasks(server, modules);
}
}