Package com.google.gerrit.sshd
Class PluginCommandModule
java.lang.Object
com.google.inject.AbstractModule
com.google.gerrit.extensions.config.FactoryModule
com.google.gerrit.lifecycle.LifecycleModule
com.google.gerrit.sshd.CommandModule
com.google.gerrit.sshd.PluginCommandModule
- All Implemented Interfaces:
- com.google.inject.Module
- 
Field SummaryFields inherited from class com.google.gerrit.sshd.CommandModuleslaveMode
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidalias(String name, Class<? extends BaseCommand> clazz) protected voidcommand(Class<? extends BaseCommand> clazz) protected com.google.inject.binder.LinkedBindingBuilder<org.apache.sshd.server.command.Command> Configure a command to be invoked by name.protected final voidprotected abstract voidMethods inherited from class com.google.gerrit.sshd.CommandModulealias, alias, command, command, commandMethods inherited from class com.google.gerrit.lifecycle.LifecycleModulelistenerMethods inherited from class com.google.gerrit.extensions.config.FactoryModulefactoryMethods inherited from class com.google.inject.AbstractModuleaddError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding
- 
Constructor Details- 
PluginCommandModule
 
- 
- 
Method Details- 
configureprotected final void configure()- Overrides:
- configurein class- com.google.inject.AbstractModule
 
- 
configureCommandsprotected abstract void configureCommands()
- 
commandprotected com.google.inject.binder.LinkedBindingBuilder<org.apache.sshd.server.command.Command> command(String subCmd) Description copied from class:CommandModuleConfigure a command to be invoked by name.- Overrides:
- commandin class- CommandModule
- Parameters:
- subCmd- the name of the command the client will provide in order to call the command.
- Returns:
- a binding that must be bound to a non-singleton provider for a Commandobject.
 
- 
command
- 
alias
 
-