org.crsh.command
Interface CommandInvoker<C,P>

Type Parameters:
C - the consumed generic type
P - the produced generic type
All Superinterfaces:
Closeable, Consumer<C>, Flushable, Pipe<C>, Producer<P>, ProducerConsumer<C,P>
All Known Implementing Classes:
GroovyScriptCommand, PipeCommandProxy, PipeLine

public interface CommandInvoker<C,P>
extends ProducerConsumer<C,P>

A command invoker.


Method Summary
 void setSession(SessionContext session)
          Associate the command invoker with a session, the association should be done before the command is invoked.
 
Methods inherited from interface org.crsh.io.Consumer
getConsumedType
 
Methods inherited from interface org.crsh.io.Pipe
provide
 
Methods inherited from interface java.io.Flushable
flush
 
Methods inherited from interface org.crsh.io.Producer
close, getProducedType, open, setPiped
 

Method Detail

setSession

void setSession(SessionContext session)
Associate the command invoker with a session, the association should be done before the command is invoked.

Parameters:
session - the session


Copyright © 2012 eXo Platform SAS. All Rights Reserved.