rename scm-server-util to scm-server-api and added scm-server-jetty

This commit is contained in:
Sebastian Sdorra
2010-09-11 17:59:11 +02:00
parent 85cb34f498
commit e45a5e62ae
15 changed files with 1059 additions and 11 deletions

View File

@@ -0,0 +1,69 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sonia.scm.server;
//~--- JDK imports ------------------------------------------------------------
import java.io.File;
import java.io.IOException;
/**
*
* @author Sebastian Sdorra
*/
public interface Server
{
/**
* Method description
*
*
* @param listener
*/
public void addListener(ServerListener listener);
/**
* Method description
*
*
* @param listener
*/
public void removeListener(ServerListener listener);
/**
* Method description
*
*
* @param config
* @param webapp
*
* @throws IOException
* @throws ServerException
*/
public void start(ServerConfig config, File webapp)
throws ServerException, IOException;
/**
* Method description
*
*
* @throws IOException
* @throws ServerException
*/
public void stop() throws ServerException, IOException;
//~--- get methods ----------------------------------------------------------
/**
* Method description
*
*
* @return
*/
public boolean isRunning();
}