org.crsh.lang.java
Class CommandImpl<T extends BaseCommand,C,P>

java.lang.Object
  extended by org.crsh.shell.impl.command.spi.Command<C,P>
      extended by org.crsh.lang.java.CommandImpl<T,C,P>
Direct Known Subclasses:
PipeCommandImpl, ProducerCommandImpl

abstract class CommandImpl<T extends BaseCommand,C,P>
extends Command<C,P>

Author:
Julien Viet

Nested Class Summary
(package private)  class CommandImpl.BaseInvoker
           
 
Field Summary
private  ShellCommandImpl<T> baseShellCommand
          .
 
Constructor Summary
CommandImpl(ShellCommandImpl<T> baseShellCommand)
           
 
Method Summary
 CommandInvoker<C,P> getInvoker()
           
(package private) abstract  CommandImpl.BaseInvoker getInvoker(T command)
           
 
Methods inherited from class org.crsh.shell.impl.command.spi.Command
getConsumedType, getMatch, getProducedType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseShellCommand

private final ShellCommandImpl<T extends BaseCommand> baseShellCommand
.

Constructor Detail

CommandImpl

public CommandImpl(ShellCommandImpl<T> baseShellCommand)
Method Detail

getInvoker

public CommandInvoker<C,P> getInvoker()
                               throws CommandCreationException
Specified by:
getInvoker in class Command<C,P>
Returns:
an invoker for this command.
Throws:
CommandCreationException

getInvoker

abstract CommandImpl.BaseInvoker getInvoker(T command)
                                     throws CommandCreationException
Throws:
CommandCreationException


Copyright © 2014 eXo Platform SAS. All Rights Reserved.