org.crsh.command
Interface InvocationContext<P>

All Superinterfaces:
Appendable, CommandContext<P>, Consumer<P>, InteractionContext, RuntimeContext, Screenable, ScreenContext
All Known Implementing Classes:
AbstractInvocationContext, InvocationContextImpl, PipeLineInvocationContext

public interface InvocationContext<P>
extends CommandContext<P>


Method Summary
 RenderPrintWriter getWriter()
          Returns the writer for the output.
 CommandInvoker<?,?> resolve(String s)
          Resolve a command invoker for the specified command line.
 
Methods inherited from interface org.crsh.command.CommandContext
close
 
Methods inherited from interface org.crsh.stream.Consumer
flush, getConsumedType, provide
 
Methods inherited from interface org.crsh.shell.InteractionContext
getProperty, readLine, releaseAlternateBuffer, takeAlternateBuffer
 
Methods inherited from interface org.crsh.text.ScreenContext
flush, getHeight, getWidth
 
Methods inherited from interface org.crsh.text.Screenable
append, cls
 
Methods inherited from interface java.lang.Appendable
append, append, append
 
Methods inherited from interface org.crsh.command.RuntimeContext
getAttributes, getSession
 

Method Detail

getWriter

RenderPrintWriter getWriter()
Returns the writer for the output.

Returns:
the writer

resolve

CommandInvoker<?,?> resolve(String s)
                            throws CommandException
Resolve a command invoker for the specified command line.

Parameters:
s - the command line
Returns:
the command invoker
Throws:
CommandException - any command exception


Copyright © 2015 eXo Platform SAS. All Rights Reserved.