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

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

public interface CommandInvoker<C,P>

The base interface for a shell command.

Version:
$Revision$
Author:
Julien Viet

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

Method Detail

invoke

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

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

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


Copyright © 2012 eXo Platform SAS. All Rights Reserved.