Skip to main content
summaryrefslogtreecommitdiffstats
blob: e3067c8861c40c6fdae8e6ebfb0d04b27f5c97ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*******************************************************************************
 * Copyright (c) 2004, 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;
/**
 * Listener interface for changes to runtimes.
 * <p>
 * This interface is fired whenever a runtime is added, modified, or removed.
 * All events are fired post-change, so that all server tools API called as a
 * result of the event will return the updated results. (for example, on
 * runtimeAdded the new server will be in the global list of runtimes
 * ({@link ServerCore#getRuntimes()}), and on runtimeRemoved the runtime will
 * not be in the list.
 * </p>
 * 
 * @see ServerCore
 * @see IRuntime
 * @since 1.0
 */
public interface IRuntimeLifecycleListener {
	/**
	 * A new runtime has been created.
	 *
	 * @param runtime the new runtime
	 */
	public void runtimeAdded(IRuntime runtime);

	/**
	 * An existing runtime has been updated or modified.
	 *
	 * @param runtime the modified runtime
	 */
	public void runtimeChanged(IRuntime runtime);

	/**
	 * A existing runtime has been removed.
	 *
	 * @param runtime the removed runtime
	 */
	public void runtimeRemoved(IRuntime runtime);
}

Back to the top