org.eclipse.osgi.framework.console.ConsoleSession 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) 2009, 2012 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.framework.console;
import java.io.InputStream;
import java.io.OutputStream;
import org.osgi.framework.*;
/**
* A console session service provides the input and output to a single console session.
* The input will be used by the console to read in console commands. The output will
* be used to print the results of console commands.
*
* The console session must be registered as an OSGi service in order to be associated
* with a console instance. The console implementation will discover any console session
* services and will create a new console instance using the console session for input and
* output. When a session is closed then the console session service will be unregistered
* and the console instance will terminate and be disposed of. The console instance will
* also terminate if the console session service is unregistered for any reason.
*
* @since 3.6
*/
public abstract class ConsoleSession implements ServiceFactory