org.sonatype.gshell.console
Class Console
java.lang.Object
org.sonatype.gshell.console.Console
- All Implemented Interfaces:
- Runnable
public class Console
- extends Object
- implements Runnable
Provides an abstraction of a console.
- Since:
- 2.0
- Author:
- Jason Dillon
|
Field Summary |
protected org.slf4j.Logger |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.slf4j.Logger log
Console
public Console(IO io,
Callable<ConsoleTask> taskFactory,
jline.console.history.History history,
InputStream bindings)
throws IOException
- Throws:
IOException
getIo
public IO getIo()
addCompleter
public void addCompleter(jline.console.completer.Completer completer)
setPrompt
public void setPrompt(ConsolePrompt prompt)
getErrorHandler
public ConsoleErrorHandler getErrorHandler()
setErrorHandler
public void setErrorHandler(ConsoleErrorHandler errorHandler)
getCurrentTask
public ConsoleTask getCurrentTask()
close
public void close()
run
public void run()
- Specified by:
run in interface Runnable
createTask
protected ConsoleTask createTask()
Copyright © 2008-2011 Sonatype. All Rights Reserved.