|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.osgi.framework.console.ConsoleSession
public abstract class ConsoleSession
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.
Constructor Summary | |
---|---|
ConsoleSession()
|
Method Summary | |
---|---|
void |
close()
Called by the console implementation to free resources associated with this console session. |
protected abstract void |
doClose()
Called by the close() method to free resources associated
with this console session. |
abstract InputStream |
getInput()
Returns the input for this console session. |
abstract OutputStream |
getOutput()
Returns the output for this console session. |
Object |
getService(Bundle bundle,
ServiceRegistration registration)
|
void |
ungetService(Bundle bundle,
ServiceRegistration registration,
Object service)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleSession()
Method Detail |
---|
public final void close()
protected abstract void doClose()
close()
method to free resources associated
with this console session. For example, closing the streams
associated with the input and output for this session.
public abstract InputStream getInput()
public abstract OutputStream getOutput()
public final Object getService(Bundle bundle, ServiceRegistration registration)
getService
in interface ServiceFactory
public final void ungetService(Bundle bundle, ServiceRegistration registration, Object service)
ungetService
in interface ServiceFactory
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.