org.crsh.lang.impl.java
Class ProducerCommandMatch<T extends BaseCommand,P>

java.lang.Object
  extended by org.crsh.shell.impl.command.spi.CommandMatch<C,P>
      extended by org.crsh.lang.impl.java.BaseCommandMatch<T,Void,P>
          extended by org.crsh.lang.impl.java.ProducerCommandMatch<T,P>

 class ProducerCommandMatch<T extends BaseCommand,P>
extends BaseCommandMatch<T,Void,P>

Author:
Julien Viet

Nested Class Summary
 
Nested classes/interfaces inherited from class org.crsh.lang.impl.java.BaseCommandMatch
BaseCommandMatch.BaseInvoker
 
Field Summary
private  CommandInvoker<Instance<T>,?> invoker
          .
private  String name
          .
private  Class<P> producedType
          .
 
Constructor Summary
ProducerCommandMatch(ClassShellCommand<T> shellCommand, CommandInvoker<Instance<T>,?> invoker, Class<P> producedType)
           
 
Method Summary
 Class<Void> getConsumedType()
           
(package private)  BaseCommandMatch.BaseInvoker getInvoker(T command)
           
 Class<P> getProducedType()
           
 
Methods inherited from class org.crsh.lang.impl.java.BaseCommandMatch
getInvoker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invoker

private final CommandInvoker<Instance<T extends BaseCommand>,?> invoker
.


producedType

private final Class<P> producedType
.


name

private final String name
.

Constructor Detail

ProducerCommandMatch

public ProducerCommandMatch(ClassShellCommand<T> shellCommand,
                            CommandInvoker<Instance<T>,?> invoker,
                            Class<P> producedType)
Method Detail

getProducedType

public Class<P> getProducedType()
Specified by:
getProducedType in class CommandMatch<Void,P>
Returns:
the command produced type

getConsumedType

public Class<Void> getConsumedType()
Specified by:
getConsumedType in class CommandMatch<Void,P>
Returns:
the command consumed type

getInvoker

BaseCommandMatch.BaseInvoker getInvoker(T command)
                                  throws CommandException
Specified by:
getInvoker in class BaseCommandMatch<T extends BaseCommand,Void,P>
Throws:
CommandException


Copyright © 2015 eXo Platform SAS. All Rights Reserved.