Class ConfigModifierServerCommand<C extends io.dropwizard.core.Configuration>
- java.lang.Object
-
- io.dropwizard.core.cli.Command
-
- io.dropwizard.core.cli.ConfiguredCommand<T>
-
- io.dropwizard.core.cli.EnvironmentCommand<T>
-
- io.dropwizard.core.cli.ServerCommand<C>
-
- ru.vyarus.dropwizard.guice.test.util.ConfigModifierServerCommand<C>
-
- Type Parameters:
C- configuration type
public class ConfigModifierServerCommand<C extends io.dropwizard.core.Configuration> extends io.dropwizard.core.cli.ServerCommand<C>DropwizardServerCommandwith configuration modifiers support.- Since:
- 04.03.2025
-
-
Constructor Summary
Constructors Constructor Description ConfigModifierServerCommand(io.dropwizard.core.Application<C> application, java.util.List<ConfigModifier<C>> modifiers)Create a command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidrun(io.dropwizard.core.setup.Bootstrap<C> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, C configuration)
-
-
-
Constructor Detail
-
ConfigModifierServerCommand
public ConfigModifierServerCommand(io.dropwizard.core.Application<C> application, java.util.List<ConfigModifier<C>> modifiers)
Create a command.- Parameters:
application- application instancemodifiers- modifiers
-
-
Method Detail
-
run
protected void run(io.dropwizard.core.setup.Bootstrap<C> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, C configuration) throws java.lang.Exception
- Overrides:
runin classio.dropwizard.core.cli.EnvironmentCommand<C extends io.dropwizard.core.Configuration>- Throws:
java.lang.Exception
-
-