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

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

public interface CommandInvoker<C,P>
extends Filter<C,P,InteractionContext<P>>

A command invoker is a filter for an InteractionContext consumer.


Method Summary
 void setSession(CommandContext 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, 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(CommandContext session)
Associate the command invoker with a session, the association should be done before the command is invoked.

Parameters:
session - the session


Copyright © 2013 eXo Platform SAS. All Rights Reserved.