Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.dropwizard.cli;
 
Parses and validates the application's configuration.

Parameters:
<T> the io.dropwizard.Configuration subclass which is loaded from the configuration file
public class CheckCommand<T extends Configurationextends ConfiguredCommand<T> {
    private static final Logger LOGGER = LoggerFactory.getLogger(CheckCommand.class);
    private final Class<T> configurationClass;
    public CheckCommand(Application<T> application) {
        super("check""Parses and validates the configuration file");
        this. = application.getConfigurationClass();
    }
    /*
     * Since we don't subclass CheckCommand, we need a concrete reference to the configuration
     * class.
     */
    @Override
    protected Class<T> getConfigurationClass() {
        return ;
    }
    @Override
    protected void run(Bootstrap<T> bootstrap,
                       Namespace namespace,
                       T configurationthrows Exception {
        .info("Configuration is OK");
    }
New to GrepCode? Check out our FAQ X