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

java.lang.Object
  extended by org.crsh.command.CommandInvoker<C,P>
Type Parameters:
C - the consumed element generic type
P - the produced element generic type
All Implemented Interfaces:
Closeable, Flushable, Consumer<C>, Filter<C,P,CommandContext<? super P>>, Producer<P,CommandContext<? super P>>
Direct Known Subclasses:
ClosureInvoker, PipeLine

public abstract class CommandInvoker<C,P>
extends Object
implements Filter<C,P,CommandContext<? super P>>

A command invoker is a filter for a CommandContext kind of consumer.


Constructor Summary
CommandInvoker()
           
 
Method Summary
 void invoke(CommandContext<? super P> consumer)
          Invoke the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

CommandInvoker

public CommandInvoker()
Method Detail

invoke

public final void invoke(CommandContext<? super P> consumer)
                  throws IOException
Invoke the command.

Parameters:
consumer - the consumer for this invocation
Throws:
IOException - any io exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.