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>
Dropwizard ServerCommand with configuration modifiers support.
Since:
04.03.2025
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConfigModifierServerCommand(io.dropwizard.core.Application<C> application, List<ConfigModifier<C>> modifiers)
    Create a command.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    run(io.dropwizard.core.setup.Bootstrap<C> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, C configuration)
     

    Methods inherited from class io.dropwizard.core.cli.ServerCommand

    getConfigurationClass, run

    Methods inherited from class io.dropwizard.core.cli.EnvironmentCommand

    getEnvironment

    Methods inherited from class io.dropwizard.core.cli.ConfiguredCommand

    addFileArgument, cleanup, cleanupAsynchronously, configure, getConfiguration, run

    Methods inherited from class io.dropwizard.core.cli.Command

    getDescription, getName, onError

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigModifierServerCommand

      public ConfigModifierServerCommand(io.dropwizard.core.Application<C> application, List<ConfigModifier<C>> modifiers)
      Create a command.
      Parameters:
      application - application instance
      modifiers - modifiers
  • Method Details

    • run

      protected void run(io.dropwizard.core.setup.Bootstrap<C> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, C configuration) throws Exception
      Overrides:
      run in class io.dropwizard.core.cli.EnvironmentCommand<C extends io.dropwizard.core.Configuration>
      Throws:
      Exception