public class ShellCommandImpl<T extends BaseCommand> extends ShellCommand<Instance<T>>
| Modifier and Type | Field and Description |
|---|---|
private Class<T> |
clazz
.
|
private CommandDescriptor<Instance<T>> |
descriptor
.
|
| Constructor and Description |
|---|
ShellCommandImpl(Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
(package private) T |
createCommand() |
protected Completer |
getCompleter(RuntimeContext context)
Returns a completer for this command.
|
CommandDescriptor<Instance<T>> |
getDescriptor()
Returns the command descriptor.
|
private <C,P,PC extends Pipe<C,P>> |
getPipeInvoker(CommandInvoker<Instance<T>,PC> invoker) |
private <P> Command<Void,P> |
getProducerInvoker(CommandInvoker<Instance<T>,?> invoker,
Class<P> producedType) |
protected Command<?,?> |
resolveCommand(InvocationMatch<Instance<T>> match)
Resolve the real command for a specified invocation match.
|
complete, describe, describe, resolveCommand, resolveInvoker, resolveInvokerprivate final Class<T extends BaseCommand> clazz
private final CommandDescriptor<Instance<T extends BaseCommand>> descriptor
public ShellCommandImpl(Class<T> clazz)
public CommandDescriptor<Instance<T>> getDescriptor()
ShellCommandgetDescriptor in class ShellCommand<Instance<T extends BaseCommand>>protected Completer getCompleter(RuntimeContext context) throws CommandCreationException
ShellCommandgetCompleter in class ShellCommand<Instance<T extends BaseCommand>>context - the related runtime contextCommandCreationException - anything that would prevent completion to happenprotected Command<?,?> resolveCommand(InvocationMatch<Instance<T>> match)
ShellCommandresolveCommand in class ShellCommand<Instance<T extends BaseCommand>>match - the matchT createCommand() throws CommandCreationException
CommandCreationExceptionprivate <C,P,PC extends Pipe<C,P>> Command<C,P> getPipeInvoker(CommandInvoker<Instance<T>,PC> invoker)
private <P> Command<Void,P> getProducerInvoker(CommandInvoker<Instance<T>,?> invoker, Class<P> producedType)
Copyright © 2014 eXo Platform SAS. All Rights Reserved.