Class ConfigModifierServerCommand<C extends io.dropwizard.core.Configuration>

  • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • ConfigModifierServerCommand

        public ConfigModifierServerCommand​(io.dropwizard.core.Application<C> application,
                                           java.util.List<ConfigModifier<C>> modifiers)
        Create a command.
        Parameters:
        application - application instance
        modifiers - 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:
        run in class io.dropwizard.core.cli.EnvironmentCommand<C extends io.dropwizard.core.Configuration>
        Throws:
        java.lang.Exception