org.crsh.shell.impl.command.spi
Class Command<C,P>

java.lang.Object
  extended by org.crsh.shell.impl.command.spi.Command<C,P>
Type Parameters:
C - the consumed type
P - the the produced type
Direct Known Subclasses:
CommandImpl

public abstract class Command<C,P>
extends Object

The real command that will be used in an command pipeline.


Constructor Summary
Command()
           
 
Method Summary
abstract  Class<C> getConsumedType()
           
abstract  CommandInvoker<C,P> getInvoker()
           
abstract  InvocationMatch<?> getMatch()
           
abstract  Class<P> getProducedType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

getInvoker

public abstract CommandInvoker<C,P> getInvoker()
                                        throws CommandCreationException
Returns:
an invoker for this command.
Throws:
CommandCreationException

getMatch

public abstract InvocationMatch<?> getMatch()
Returns:
the match that created this command

getProducedType

public abstract Class<P> getProducedType()
Returns:
the command produced type

getConsumedType

public abstract Class<C> getConsumedType()
Returns:
the command consumed type


Copyright © 2014 eXo Platform SAS. All Rights Reserved.