org.crsh.command
Class CommandInvoker<C,P>
java.lang.Object
org.crsh.command.CommandInvoker<C,P>
- Type Parameters:
C - the consumed element generic typeP - 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandInvoker
public CommandInvoker()
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.