org.eclipse.osgi.service.runnable.ApplicationLauncher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aspectjtools Show documentation
Show all versions of aspectjtools Show documentation
Tools from the AspectJ project
/*******************************************************************************
* Copyright (c) 2005, 2010 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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.
*
* This interface is not intended to be implemented by clients.
*
*
* 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.
*
*
* @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.
*
* After this method returns this ApplicationLauncher will no longer allow
* applications to be launched.
*/
void shutdown();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy