public final class CommandSupport
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
initCommands(java.util.List<io.dropwizard.cli.Command> commands,
com.google.inject.Injector injector)
Inject dependencies into all registered environment commands.
|
static java.util.List<io.dropwizard.cli.Command> |
registerCommands(io.dropwizard.setup.Bootstrap bootstrap,
ClasspathScanner scanner,
ConfigurationContext context)
Scans classpath to find commands and register them.
|
public static java.util.List<io.dropwizard.cli.Command> registerCommands(io.dropwizard.setup.Bootstrap bootstrap,
ClasspathScanner scanner,
ConfigurationContext context)
EnvironmentCommand
must have constructor with Application argument.bootstrap - bootstrap objectscanner - configured scanner instancecontext - configuration contextpublic static void initCommands(java.util.List<io.dropwizard.cli.Command> commands,
com.google.inject.Injector injector)
commands - registered commandsinjector - guice injector object