Package io.dropwizard.flyway.cli
Class DbValidateCommand<T extends io.dropwizard.core.Configuration>
- java.lang.Object
-
- io.dropwizard.core.cli.Command
-
- io.dropwizard.core.cli.ConfiguredCommand<T>
-
- io.dropwizard.flyway.cli.DbValidateCommand<T>
-
public class DbValidateCommand<T extends io.dropwizard.core.Configuration> extends io.dropwizard.core.cli.ConfiguredCommand<T>
-
-
Constructor Summary
Constructors Constructor Description DbValidateCommand(io.dropwizard.db.DatabaseConfiguration<T> databaseConfiguration, FlywayConfiguration<T> flywayConfiguration, Class<T> configurationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(net.sourceforge.argparse4j.inf.Subparser subparser)
protected Class<T>
getConfigurationClass()
protected void
run(io.dropwizard.core.setup.Bootstrap<T> bootstrap, net.sourceforge.argparse4j.inf.Namespace namespace, T configuration)
protected void
run(net.sourceforge.argparse4j.inf.Namespace namespace, org.flywaydb.core.Flyway flyway)
protected void
setAdditionalOptions(FlywayFactory flywayFactory, net.sourceforge.argparse4j.inf.Namespace namespace)
-
-
-
Constructor Detail
-
DbValidateCommand
public DbValidateCommand(io.dropwizard.db.DatabaseConfiguration<T> databaseConfiguration, FlywayConfiguration<T> flywayConfiguration, Class<T> configurationClass)
-
-
Method Detail
-
configure
public void configure(net.sourceforge.argparse4j.inf.Subparser subparser)
- Overrides:
configure
in classio.dropwizard.core.cli.ConfiguredCommand<T extends io.dropwizard.core.Configuration>
-
setAdditionalOptions
protected void setAdditionalOptions(FlywayFactory flywayFactory, net.sourceforge.argparse4j.inf.Namespace namespace)
-
run
protected void run(net.sourceforge.argparse4j.inf.Namespace namespace, org.flywaydb.core.Flyway flyway) throws Exception
- Throws:
Exception
-
getConfigurationClass
protected Class<T> getConfigurationClass()
- Overrides:
getConfigurationClass
in classio.dropwizard.core.cli.ConfiguredCommand<T extends io.dropwizard.core.Configuration>
-
-