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 spotless-ext-greclipse Show documentation
Show all versions of spotless-ext-greclipse Show documentation
Groovy Eclipse's formatter bundled for Spotless
The newest version!
/*******************************************************************************
* Copyright (c) 2009, 2012 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.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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy