org.crsh.lang.impl.java
Class ProducerCommandMatch<T extends BaseCommand,P>
java.lang.Object
org.crsh.shell.impl.command.spi.CommandMatch<C,P>
org.crsh.lang.impl.java.BaseCommandMatch<T,Void,P>
org.crsh.lang.impl.java.ProducerCommandMatch<T,P>
-
class ProducerCommandMatch<T extends BaseCommand,P>
- extends BaseCommandMatch<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
-
.
name
private final String name
-
.
ProducerCommandMatch
public ProducerCommandMatch(ClassShellCommand<T> shellCommand,
CommandInvoker<Instance<T>,?> invoker,
Class<P> producedType)
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.