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

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

public abstract class CommandMatch<C,P>
extends Object

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


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

Constructor Detail

CommandMatch

public CommandMatch()
Method Detail

getInvoker

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

getProducedType

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

getConsumedType

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


Copyright © 2015 eXo Platform SAS. All Rights Reserved.