org.crsh.lang.java
Class ProducerCommandImpl<T extends BaseCommand,P>
java.lang.Object
org.crsh.shell.impl.command.spi.Command<C,P>
org.crsh.lang.java.CommandImpl<T,Void,P>
org.crsh.lang.java.ProducerCommandImpl<T,P>
class ProducerCommandImpl<T extends BaseCommand,P>
- extends CommandImpl<T,Void,P>
- Author:
- Julien Viet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
invoker
private final CommandInvoker<Instance<T extends BaseCommand>,?> invoker
producedType
private final Class<P> producedType
ProducerCommandImpl
public ProducerCommandImpl(ShellCommandImpl<T> shellCommand,
CommandInvoker<Instance<T>,?> invoker,
Class<P> producedType)
getMatch
public InvocationMatch<?> getMatch()
- Specified by:
getMatch in class Command<Void,P>
- Returns:
- the match that created this command
getProducedType
public Class<P> getProducedType()
- Specified by:
getProducedType in class Command<Void,P>
- Returns:
- the command produced type
getConsumedType
public Class<Void> getConsumedType()
- Specified by:
getConsumedType in class Command<Void,P>
- Returns:
- the command consumed type
getInvoker
CommandImpl.BaseInvoker getInvoker(T command)
throws CommandCreationException
- Specified by:
getInvoker in class CommandImpl<T extends BaseCommand,Void,P>
- Throws:
CommandCreationException
Copyright © 2014 eXo Platform SAS. All Rights Reserved.