org.jpos.q2
Class CLICommandInterface.LegacyCommandAdapter

java.lang.Object
  extended by org.jpos.q2.CLI
      extended by org.jpos.q2.CLICommandInterface.LegacyCommandAdapter
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
CLICommandInterface

public static class CLICommandInterface.LegacyCommandAdapter
extends CLI


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jpos.q2.CLI
CLI.Command
 
Constructor Summary
CLICommandInterface.LegacyCommandAdapter(CLIContext ctx)
           
 
Method Summary
 boolean confirm(java.lang.String prompt)
           
 jline.ConsoleReader getConsoleReader()
           
 java.io.PrintStream getOutputStream()
           
 Q2 getQ2()
           
 void print(java.lang.String s)
           
 void println(java.lang.String s)
           
 
Methods inherited from class org.jpos.q2.CLI
getCompletionPrefixes, getPrompt, handleExit, isRunning, markStarted, markStopped, run, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLICommandInterface.LegacyCommandAdapter

public CLICommandInterface.LegacyCommandAdapter(CLIContext ctx)
                                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

print

public void print(java.lang.String s)
Overrides:
print in class CLI

println

public void println(java.lang.String s)
Overrides:
println in class CLI

confirm

public boolean confirm(java.lang.String prompt)
                throws java.io.IOException
Overrides:
confirm in class CLI
Throws:
java.io.IOException

getQ2

public Q2 getQ2()
Overrides:
getQ2 in class CLI

getConsoleReader

public jline.ConsoleReader getConsoleReader()
Overrides:
getConsoleReader in class CLI

getOutputStream

public java.io.PrintStream getOutputStream()
Overrides:
getOutputStream in class CLI