blob: 477c7923b6e41e035338e0e8ada9def33e8b7d9b [file] [log] [blame]
/**********************************************************************
* Copyright (c) 2003, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
 *
* Contributors:
* IBM Corporation - Initial API and implementation
**********************************************************************/
package org.eclipse.wst.server.core;
import java.util.List;
/**
* A task for a server.
*
* <p>This interface is not intended to be implemented by clients.</p>
*/
public interface IServerTask {
/**
* Returns the id of the adapter.
*
* @return java.lang.String
*/
public String getId();
/**
* Returns true if the given type (given by the id) can use this task. This
* result is based on the result of the getTypeIds() method.
*
* @return boolean
*/
public boolean supportsType(String id);
/**
* Lets the task know that it is about to be used. This method should
* be used to clean out any previously cached information, or start to
* create a new cache.
*
* @param server org.eclipse.wst.server.core.IServer
* @param parents java.util.List[]
* @param modules org.eclipse.wst.server.core.IModule[]
*/
public IOptionalTask[] getTasks(IServer server, List[] parents, IModule[] modules);
}