org.sonatype.gshell.console
Class Console

java.lang.Object
  extended by 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
           
 
Constructor Summary
Console(IO io, Callable<ConsoleTask> taskFactory, jline.console.history.History history, InputStream bindings)
           
 
Method Summary
 void addCompleter(jline.console.completer.Completer completer)
           
 void close()
           
protected  ConsoleTask createTask()
           
 ConsoleTask getCurrentTask()
           
 ConsoleErrorHandler getErrorHandler()
           
 IO getIo()
           
 void run()
           
 void setErrorHandler(ConsoleErrorHandler errorHandler)
           
 void setPrompt(ConsolePrompt prompt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

Console

public Console(IO io,
               Callable<ConsoleTask> taskFactory,
               jline.console.history.History history,
               InputStream bindings)
        throws IOException
Throws:
IOException
Method Detail

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.