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

Type Parameters:
C - the consumed generic type
P - the produced generic type
All Known Implementing Classes:
GroovyScriptCommand

public interface CommandInvoker<C,P>

A command invoker.


Method Summary
 Class<C> getConsumedType()
          Returns the class of the consumed type.
 Class<P> getProducedType()
          Returns the class of the produced type.
 PipeCommand<C> invoke(InvocationContext<P> context)
          Invoke a command
 

Method Detail

getProducedType

Class<P> getProducedType()
Returns the class of the produced type.

Returns:
the produced type

getConsumedType

Class<C> getConsumedType()
Returns the class of the consumed type.

Returns:
the consumed type

invoke

PipeCommand<C> invoke(InvocationContext<P> context)
                      throws ScriptException
Invoke a command

Parameters:
context - the command execution context
Returns:
the related pipe
Throws:
ScriptException - any script exception


Copyright © 2012 eXo Platform SAS. All Rights Reserved.