File: ApplicationLauncher.java

package info (click to toggle)
libequinox-osgi-java 3.9.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,068 kB
  • sloc: java: 57,768; makefile: 9
file content (45 lines) | stat: -rw-r--r-- 1,659 bytes parent folder | download | duplicates (10)
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
/*******************************************************************************
 * Copyright (c) 2005, 2010 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.osgi.service.runnable;

/**
 * An ApplicationLauncher is used to launch ParameterizedRunnable objects using 
 * the main thread.
 * <p>
 * This interface is not intended to be implemented by clients.
 * </p>
 * <p>
 * This class is for internal use by the platform-related plug-ins.
 * Clients outside of the base platform should not reference or subclass this class.
 * </p>
 * 
 * @since 3.2
 * @noimplement This interface is not intended to be implemented by clients.
 */
public interface ApplicationLauncher {
	/**
	 * Launches the specified runnable using the main thread.
	 * @param runnable a ParameterizedRunnalbe to run on the main thread.
	 * @param context the context to launch the runnable with
	 */
	void launch(ParameterizedRunnable runnable, Object context);

	/**
	 * Forces the current runnable which is running to be stopped.  
	 * This method will return after the currently running ParameterizedRunnable
	 * has completely stopped.
	 * <p>
	 * After this method returns this ApplicationLauncher will no longer allow 
	 * applications to be launched.
	 */
	void shutdown();
}