deboer | 65ea507 | 2005-02-17 19:14:45 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
deboer | c82fb0c | 2007-11-07 20:04:55 +0000 | [diff] [blame] | 2 | * Copyright (c) 2004, 2007 IBM Corporation and others. |
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 3 | * All rights reserved. This program and the accompanying materials |
deboer | df10c15 | 2005-02-17 18:24:46 +0000 | [diff] [blame] | 4 | * are made available under the terms of the Eclipse Public License v1.0 |
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 5 | * which accompanies this distribution, and is available at |
deboer | df10c15 | 2005-02-17 18:24:46 +0000 | [diff] [blame] | 6 | * http://www.eclipse.org/legal/epl-v10.html |
deboer | 65ea507 | 2005-02-17 19:14:45 +0000 | [diff] [blame] | 7 | * |
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 8 | * Contributors: |
deboer | f942357 | 2005-02-17 19:34:29 +0000 | [diff] [blame] | 9 | * IBM Corporation - Initial API and implementation |
deboer | 65ea507 | 2005-02-17 19:14:45 +0000 | [diff] [blame] | 10 | *******************************************************************************/ |
deboer | 2233601 | 2005-03-04 21:23:15 +0000 | [diff] [blame] | 11 | package org.eclipse.jst.server.tomcat.core.internal; |
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 12 | |
| 13 | import org.eclipse.core.runtime.CoreException; |
| 14 | import org.eclipse.core.runtime.IProgressMonitor; |
| 15 | import org.eclipse.debug.core.ILaunch; |
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 16 | /** |
| 17 | * |
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 18 | */ |
| 19 | public interface ITomcatServerBehaviour { |
| 20 | /** |
| 21 | * Returns the main class that is used to launch the Tomcat server. |
| 22 | * |
deboer | 075b687 | 2005-03-14 02:12:32 +0000 | [diff] [blame] | 23 | * @return the main runtime class |
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 24 | */ |
| 25 | public String getRuntimeClass(); |
| 26 | |
| 27 | /** |
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 28 | * Setup for starting the server. |
| 29 | * |
| 30 | * @param launch ILaunch |
| 31 | * @param launchMode String |
| 32 | * @param monitor IProgressMonitor |
deboer | 7d78b90 | 2005-04-15 21:05:21 +0000 | [diff] [blame] | 33 | * @throws CoreException if anything goes wrong |
deboer | da1df6a | 2004-12-03 13:35:32 +0000 | [diff] [blame] | 34 | */ |
| 35 | public void setupLaunch(ILaunch launch, String launchMode, IProgressMonitor monitor) throws CoreException; |
| 36 | } |