public class ClassShellCommand<T extends BaseCommand> extends Command<Instance<T>>
Modifier and Type | Field and Description |
---|---|
private Class<T> |
clazz
.
|
private CommandDescriptor<Instance<T>> |
descriptor
.
|
Constructor and Description |
---|
ClassShellCommand(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> CommandMatch<Void,P> |
getProducerInvoker(CommandInvoker<Instance<T>,?> invoker,
Class<P> producedType) |
protected CommandMatch<?,?> |
resolve(InvocationMatch<Instance<T>> match)
Resolve the real match for a specified invocation match.
|
complete, describe, describe, resolveCommand, resolveCommand, resolveInvoker
private final Class<T extends BaseCommand> clazz
private final CommandDescriptor<Instance<T extends BaseCommand>> descriptor
public ClassShellCommand(Class<T> clazz) throws IntrospectionException
IntrospectionException
public CommandDescriptor<Instance<T>> getDescriptor()
Command
getDescriptor
in class Command<Instance<T extends BaseCommand>>
protected Completer getCompleter(RuntimeContext context) throws CommandException
Command
getCompleter
in class Command<Instance<T extends BaseCommand>>
context
- the related runtime contextCommandException
- anything that would prevent completion to happenprotected CommandMatch<?,?> resolve(InvocationMatch<Instance<T>> match)
Command
resolve
in class Command<Instance<T extends BaseCommand>>
match
- the matchT createCommand() throws CommandException
CommandException
private <C,P,PC extends Pipe<C,P>> CommandMatch<C,P> getPipeInvoker(CommandInvoker<Instance<T>,PC> invoker)
private <P> CommandMatch<Void,P> getProducerInvoker(CommandInvoker<Instance<T>,?> invoker, Class<P> producedType)
Copyright © 2015 eXo Platform SAS. All Rights Reserved.